android-components / mozilla.components.lib.push.amazon / AbstractAmazonPushService

AbstractAmazonPushService

abstract class AbstractAmazonPushService : ADMMessageHandlerBase, PushService (source)

An Amazon Cloud Messaging implementation of the PushService for Android devices that support Google Play Services. ADMMessageHandlerBase requires a redundant constructor parameter.

Constructors

Name Summary
<init> AbstractAmazonPushService()
An Amazon Cloud Messaging implementation of the PushService for Android devices that support Google Play Services. ADMMessageHandlerBase requires a redundant constructor parameter.

Functions

Name Summary
deleteToken open fun deleteToken(): Unit
Tells the push service to delete the registration token.
isServiceAvailable open fun isServiceAvailable(context: <ERROR CLASS>): Boolean
If the push service is support on the device.
onMessage open fun onMessage(intent: <ERROR CLASS>): Unit
onRegistered open fun onRegistered(registrationId: String): Unit
onRegistrationError open fun onRegistrationError(errorId: String): Unit
onUnregistered open fun onUnregistered(registrationId: String): Unit
start open fun start(context: <ERROR CLASS>): Unit
Starts the push service.
stop open fun stop(): Unit
Stops the push service.

Extension Functions

Name Summary
loadResourceAsString fun Any.loadResourceAsString(path: String): String
Loads a file from the resources folder and returns its content as a string object.