Show:

It exposes APIs to handle service request events

Methods

onFinish

()

This is the final method that is called on a Service instance before it�s destroyed and completely removed from memory.

There will be no lifecycle methods called after the Activity has been destroyed.

onRequestFinish

(
  • connectionResponse
)

This method is called after Hybrid Service Request is executed.

Parameters:

  • connectionResponse Object

    IConnectionResponse instance

onRequestInvoke

(
  • connectionRequest
)

This method is called before Service calls Hybrid Service Request.

Parameters:

  • connectionRequest Object

    IConnectionRequest instance

onTerminate

(
  • serviceException
)

This method is called when there is any exception while executing the service.

Once this is called the service will be terminated and release from the memory.

Parameters: