GenericServiceClient::EventCallbackExΒΆ
-
class
kanzi::connect::GenericServiceClient::EventCallbackEx Traditional c++ interface for callbacks to be used in android.
Public Functions
-
~EventCallbackEx() Allows generic client side interface to a named service. Introspects service details along the way when service methods are invoked.
Required for Java bindings
-
void
onEventReceived(const string &eventName, const EventArguments &eventArguments) = 0 Invoked when event is received.
- Parameters
eventName: the name of the event.eventArguments: named arguments for the event.
-
void
onEventRegistrationStateChanged(const string &eventName, EventRegistrationState state) = 0 Invoked when event registration state changes.
- Parameters
eventName: name of the event whom registration status changedstate: the new state of registration. Generally either ..Failed or ..Complete
-
class
EventArguments Wrapper class for event arguments. Used in external application bindings.
Public Functions
-
EventArguments(const map<string, string> &argumentMap) Construct event arguments from argument map.
-
vector<string>
getKeys() Get all the keys.
- Return
vector of keys currently held.
-
string
getValue(const string &key) Get value with a key.
- Return
value indexed with the key. empty string if not found.
- Parameters
name: of the key
-
bool
hasKey(const string &key) Checks whether specific key is present.
- Return
true if there is a value with the key.
- Parameters
key: the key to check
-
-