uds_register_client()

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

Synopsis:

#include "bb/pim/unified/unified_data_source.h"
 
int uds_register_client(uds_context_t handle, const char *pServiceURL, const char *pLibPath, const char *pAssetPath)

Since:

BlackBerry 10.2.0

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 (For the qcc command, use the -l unifieddatasourcec option to link against this library)

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: 2014-05-14



Got questions about leaving a comment? Get answers from our Disqus FAQ.

comments powered by Disqus