Receive Installation Notifications
Notifications by Callback
Callback Methods
interface IResponseCallback {
/**
* Called when response is successful
*
* @param result result of the operation of the type [R]
*/
fun onSuccess(result: R)
/**
* Called when any error occurred during communication
*
* @param error error description of the type [E]
*/
fun onError(error: E)
/**
* Called when Ignite notifies about the task progress
*
* @param progress contains [Progress] provided by Ignite
*/
fun onProgress(progress: P) {
// Do nothing by default
}
/**
* Called when Ignite started task execution
*
* @param taskInfo contains any task info provided by Ignite [TaskInfo]
*/
fun onStart(taskInfo: TaskInfo) {
// Do nothing by default
}
/**
* Called when Ignite scheduled task execution
*
* @param taskInfo contains any task info provided by Ignite [TaskInfo]
*/
fun onScheduled(taskInfo: TaskInfo) {
// Do nothing by default
}
}Callback Error Codes
ERROR
CODE
DESCRIPTION
HTTP Response
Notifications by Broadcast
Broadcast Notification Content
Broadcast Status Codes
STATUS
CODE
STATUS_MESSAGE
Examples
Install App by Package Name and Receive Callback
Install App by Package Name and Receive Broadcast
Install App by Package Name and Receive Callback and Broadcast
Install App by URI and Receive Callback
Install App by URI and Receive Broadcast
Install App by URI and Receive Callback and Broadcast
Last updated
