Type Definitions
-
listBeaconCallback(list)
-
This callback is invoked when the list of beacons has been successfully loaded in the SDK
Parameters:
Name Type Description listArray.<Beacon> Array with all Beacons saved in device
-
listGeofencesCallback(list)
-
This callback is invoked when the list of geofences has been successfully loaded in the SDK
Parameters:
Name Type Description listArray.<Geofence> Array with all GeoFence saved in device
-
listMessagesCallback(list)
-
This callback is invoked when the list of messages has been successfully loaded in the SDK
Parameters:
Name Type Description listArray.<Message> Array with all Notification saved in device
-
sendMessageCallback()
-
This callback is invoked when an outgoing message has been successfully sent from the app to the ME platform
-
leaveWorkspaceCallback()
-
This callback is invoked when the user leaves a workspace
-
joinWorkspaceCallback(workspace)
-
This callback is invoked when the user joins a workspace
Parameters:
Name Type Description workspaceWorkspace workspace joined
-
getWorkspaceCallback(workspace)
-
This callback is invoked when the user requests a workspace by ID
Parameters:
Name Type Description workspaceWorkspace Workspace
-
getDefaultWorkspaceCallback(workspace)
-
This callback is invoked after obtaining the default workspace
Parameters:
Name Type Description workspaceWorkspace Default workspace
-
getSubscribedWorkspacesCallback(workspace)
-
This callback is invoked with the list of all the workspaces to which the user is subscribed
Parameters:
Name Type Description workspaceArray.<Workspace> List of subscribed workspaces
-
getAvailableWorkspacesCallback(workspace)
-
This callback returns the list of all the available workspaces to which the user can subscribe
Parameters:
Name Type Description workspaceArray.<Workspace> List of available workspaces
-
activatePhoneWithCodeCallback()
-
This callback is invoked after successfully activating the mobile number
-
registerWithPhoneCallback()
-
This callback is invoked after successfully registering the mobile number
-
registerWithTokenCallback()
-
This callback is invoked after successfully registering a token
-
registerCallback()
-
This callback is invoked after registering the device
-
getCurrentLocationCallback(location)
-
This callback is invoked after obtaining the device location
Parameters:
Name Type Description locationLocation Device location
-
onGeofenceTriggeredCallback(geofence)
-
This callback is invoked after when Geofence is triggered
Parameters:
Name Type Description geofenceGeofence Geofence Triggered
-
onLocationUpdateCallback(location)
-
This callback is invoked when the location of the device is updated
Parameters:
Name Type Description locationLocation Device location
-
onPushReceivedCallback(message)
-
This callback is invoked when a new push notification is received
Parameters:
Name Type Description messageMessage Notification
-
getUserIDCallback(valid)
-
This callback is invoked to validate that the user was successfully registered
Parameters:
Name Type Description validboolean true if the user is valid and was successfully registered, false otherwise
-
getUserIDCallback(userID)
-
This callback is invoked to obtain the user ID
Parameters:
Name Type Description userIDstring User ID
-
getUserIDErrorCallback(error)
-
This callback is invoked if the retrieval of the user ID failed or the user registration is invalid
Parameters:
Name Type Description errorstring Error message
-
errorCallback(message)
-
This is the generic error callback, invoked when a generic error occurs in the SDK
Parameters:
Name Type Description messagestring Error message
-
initCallback()
-
This callback is invoked after the initialization process is complete successfully