uds_register_client()

Register your app as a client entity with the BlackBerry Hub.

Synopsis:

int uds_register_client(uds_context_t handle, const char *pServiceURL, const char *pLibPath, const char *pAssetPath)

Arguments:

handle

The handle that's associated with your app's registration with the BlackBerry Hub.

pServiceURL

A uniquely identified service URL to be registered with the BlackBerry Hub.

pLibPath

The library path of any module that must be loaded by the BlackBerry Hub.

pAssetPath

The relative path of any assets that your data uses, such as images or icons.

Library:

libunifieddatasourcec

Description:

This function identifies your app to the BlackBerry Hub and registers it as a client entity, which means that your app is allowed to add and manipulate BlackBerry Hub data. When your app registers using this function, you need to provide a service URL to identify your app, a library path that specifies any modules that must be loaded by the BlackBerry Hub, and a relative path to any assets that your data uses, such as images or icons.

Returns:

UDS_SUCCESS if the registration was successful, or a non-zero error code on failure. See uds_error_code_t or errno.h for details.

Last modified: 2013-12-21

comments powered by Disqus