PushFeature
PushFeatureInitializationStatus
WhenReadyHandler
DID THIS ARTICLE SOLVE YOUR ISSUE?
Let us know so we can improve!
Let us know so we can improve!
Package: com.salesforce.marketingcloud.pushfeature
Module: Push Feature Module v2.0.0
An abstract handler class that manages asynchronous SDK requests by delivering PushFeature instances to registered listeners using Android’s Handler mechanism on the appropriate thread.
1abstract class WhenReadyHandler(
2 looper: Looper?,
3 val listener: WhenReadyListener
4)1constructor(looper: Looper?, listener: WhenReadyListener)Creates a new instance with the specified Looper and listener.
Parameters:
looper - The Looper for thread handling (nullable)listener - The WhenReadyListener to receive callbacks1@Volatile
2var completed: BooleanIndicates whether the operation has completed.
1val listener: WhenReadyListenerThe listener that receives SDK callbacks.
1fun deliverSdk()Delivers the SDK instance to the registered listener.