Stay organized with collections
Save and categorize content based on your preferences.
ndk::BnCInterface
This is an abstract class.
#include <binder_interface_utils.h>
implementation of IInterface for server (n = native)
Summary
Inheritance
Inherits from: INTERFACE
Public static functions
|
makeServiceName(std::string_view instance)
|
std::string
|
Protected functions
|
createBinder()=0
|
This function should only be called by asBinder.
|
Public functions
BnCInterface
BnCInterface()
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.
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2024-04-17 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-04-17 UTC."],[],[],null,["# ndk::BnCInterface Class Reference\n\nndk::BnCInterface\n=================\n\n\n**This is an abstract class.**\n\n\n`#include \u003cbinder_interface_utils.h\u003e`\n\nimplementation of IInterface for server (n = native)\n\nSummary\n-------\n\n### Inheritance\n\nInherits from: INTERFACE\n\n| ### Constructors and Destructors ||\n|---|---|\n| [BnCInterface](#classndk_1_1_bn_c_interface_1a8b8ddd2015ee799cd3202b4042898a42)`()` ||\n| [~BnCInterface](#classndk_1_1_bn_c_interface_1a28bfb15e44f68bdd2554b6142b5c7239)`()` ||\n\n| ### Public functions ||\n|-----------------------------------------------------------------------------------------------|------------------------------------------------------------------------------------|\n| [asBinder](#classndk_1_1_bn_c_interface_1a7861c50895b5193b484197cefae4253c)`() overridefinal` | [SpAIBinder](/ndk/reference/classndk/1-1-sp-a-i-binder#classndk_1_1_sp_a_i_binder) |\n| [isRemote](#classndk_1_1_bn_c_interface_1aa969fa8ad9505bf59ff1e013e9d54f5d)`() overridefinal` | `bool` |\n\n| ### Public static functions ||\n|-----------------------------------------------------------------------------------------------------------------|---------------|\n| [makeServiceName](#classndk_1_1_bn_c_interface_1af1e91efe8e4031bdbee8315f1effdc24)`(std::string_view instance)` | `std::string` |\n\n| ### Protected functions ||\n|---------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------|\n| [createBinder](#classndk_1_1_bn_c_interface_1a47662e1bef24692d6dd35f350ac996d9)`()=0` | `virtual `[SpAIBinder](/ndk/reference/classndk/1-1-sp-a-i-binder#classndk_1_1_sp_a_i_binder) This function should only be called by asBinder. |\n\nPublic functions\n----------------\n\n### BnCInterface\n\n```text\n BnCInterface()\n``` \n\n### asBinder\n\n```text\nSpAIBinder asBinder() overridefinal\n``` \n\n### isRemote\n\n```text\nbool isRemote() overridefinal\n``` \n\n### \\~BnCInterface\n\n```text\nvirtual ~BnCInterface()\n``` \n\nPublic static functions\n-----------------------\n\n### makeServiceName\n\n```scdoc\nstd::string makeServiceName(\n std::string_view instance\n)\n``` \n\nProtected functions\n-------------------\n\n### createBinder\n\n```text\nvirtual SpAIBinder createBinder()=0\n``` \nThis function should only be called by asBinder.\n\nOtherwise, there is a possibility of multiple AIBinder\\* objects being created for the same instance of an object."]]