Package io.getstream.android.push
Interface PushDeviceGenerator
-
- All Implemented Interfaces:
public interface PushDeviceGeneratorGenerator responsible for providing information needed to register the push notifications provider
-
-
Method Summary
Modifier and Type Method Description abstract BooleanisValidForThisDevice(Context context)Checks if push notification provider is valid for this device abstract UnitonPushDeviceGeneratorSelected()Called when this PushDeviceGenerator has been selected to be used. abstract UnitasyncGeneratePushDevice(Function1<PushDevice, Unit> onPushDeviceGenerated)Asynchronously generates a PushDevice and calls onPushDeviceGenerated callback once it's ready -
-
Method Detail
-
isValidForThisDevice
abstract Boolean isValidForThisDevice(Context context)
Checks if push notification provider is valid for this device
-
onPushDeviceGeneratorSelected
abstract Unit onPushDeviceGeneratorSelected()
Called when this PushDeviceGenerator has been selected to be used.
-
asyncGeneratePushDevice
abstract Unit asyncGeneratePushDevice(Function1<PushDevice, Unit> onPushDeviceGenerated)
Asynchronously generates a PushDevice and calls onPushDeviceGenerated callback once it's ready
-
-
-
-