IInterface.h File Reference

Detailed Description

Common base class for abstract binderized interfaces.

#include <support/SupportDefs.h>
#include <support/StaticValue.h>
#include <support/Atom.h>
#include <support/IBinder.h>

Go to the source code of this file.


class  IInterface
 Base class for C++ language Binder interfaces. More...


 Use this macro inside of your IInterface subclass to define the standard IInterface meta-API.


template<class IFACE>
sptr< IFACE > interface_cast (const SValue &v)
 Convert an SValue containing a binder object to a concrete interface.
template<class IFACE>
sptr< IFACE > interface_cast (const sptr< IBinder > &b)
 Convert a generic IBinder to a concrete interface.