android-components / mozilla.components.feature.accounts.push / FxaPushSupportFeature

FxaPushSupportFeature

class FxaPushSupportFeature (source)

A feature used for supporting FxA and push integration where needed. One of the main functions is when FxA notifies the device during a sync, that it’s unable to reach the device via push messaging; triggering a push registration renewal.

Parameters

context - The application Android context.

accountManager - The FxaAccountManager.

pushFeature - The AutoPushFeature if that is setup for observing push events.

owner - the lifecycle owner for the observer. Defaults to ProcessLifecycleOwner.

autoPause - whether to stop notifying the observer during onPause lifecycle events. Defaults to false so that observers are always notified.

Constructors

Name Summary
<init> FxaPushSupportFeature(context: <ERROR CLASS>, accountManager: FxaAccountManager, pushFeature: AutoPushFeature, owner: LifecycleOwner = ProcessLifecycleOwner.get(), autoPause: Boolean = false)
A feature used for supporting FxA and push integration where needed. One of the main functions is when FxA notifies the device during a sync, that it’s unable to reach the device via push messaging; triggering a push registration renewal.

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.