ndk::BnCInterface

This is an abstract class.

#include <binder_interface_utils.h>

implementation of IInterface for server (n = native)

Summary

Inheritance

Inherits from: INTERFACE

Constructors and Destructors

BnCInterface()
~BnCInterface()

Public functions

asBinder() overridefinal
isRemote() overridefinal
bool

Public static functions

makeServiceName(std::string_view instance)
std::string

Protected functions

createBinder()=0
virtual SpAIBinder
This function should only be called by asBinder.

Public functions

BnCInterface

 BnCInterface()

asBinder

SpAIBinder asBinder() overridefinal

isRemote

bool isRemote() overridefinal

~BnCInterface

virtual  ~BnCInterface()

Public static functions

makeServiceName

std::string makeServiceName(
  std::string_view instance
)

Protected functions

createBinder

virtual SpAIBinder createBinder()=0

This function should only be called by asBinder.

Otherwise, there is a possibility of multiple AIBinder* objects being created for the same instance of an object.