Class MarigoldExtensionsKt
-
- All Implemented Interfaces:
public final class MarigoldExtensionsKt
-
-
Field Summary
Fields Modifier and Type Field Description private final static SharedFlow<Pair<Context, Bundle>>notificationReceivedFlowprivate final static SharedFlow<Pair<Context, Bundle>>notificationTappedFlowprivate final static SharedFlow<Triple<Context, Bundle, ActionTapped>>notificationActionTappedFlow
-
Method Summary
Modifier and Type Method Description final SharedFlow<Pair<Context, Bundle>>getNotificationReceivedFlow()Notification Received Flow - subscribe to this to handle events when notifications are received on the device. final SharedFlow<Pair<Context, Bundle>>getNotificationTappedFlow()Notification Tapped Flow - subscribe to this to handle events when notifications are tapped by the user. final SharedFlow<Triple<Context, Bundle, ActionTapped>>getNotificationActionTappedFlow()Notification Action Tapped Flow - subscribe to this to handle events when notification actions are tapped by the user. final static StringgetDeviceId(Marigold $self)Gets this device's ID on the Marigold Platform. final static Result<String>getDeviceIdResult(Marigold $self)Gets this device's ID on the Marigold Platform. final static UnitsetGeoIPTrackingEnabled(Marigold $self, Boolean enabledGeoIp)Enabled location tracking based on IP Address. final static Result<Unit>setGeoIPTrackingEnabledResult(Marigold $self, Boolean enabledGeoIp)Enabled location tracking based on IP Address. -
-
Method Detail
-
getNotificationReceivedFlow
final SharedFlow<Pair<Context, Bundle>> getNotificationReceivedFlow()
Notification Received Flow - subscribe to this to handle events when notifications are received on the device.
-
getNotificationTappedFlow
final SharedFlow<Pair<Context, Bundle>> getNotificationTappedFlow()
Notification Tapped Flow - subscribe to this to handle events when notifications are tapped by the user.
-
getNotificationActionTappedFlow
final SharedFlow<Triple<Context, Bundle, ActionTapped>> getNotificationActionTappedFlow()
Notification Action Tapped Flow - subscribe to this to handle events when notification actions are tapped by the user.
-
getDeviceId
final static String getDeviceId(Marigold $self)
Gets this device's ID on the Marigold Platform. Marigold
-
getDeviceIdResult
final static Result<String> getDeviceIdResult(Marigold $self)
Gets this device's ID on the Marigold Platform.
- Returns:
Result representing the outcome of the request.
-
setGeoIPTrackingEnabled
final static Unit setGeoIPTrackingEnabled(Marigold $self, Boolean enabledGeoIp)
Enabled location tracking based on IP Address. Tracking location tracking is enabled by default. Use this method for users who may not want to have their location tracked at all.
- Parameters:
enabledGeoIp- A boolean value indicating whether or not to disable location based on IP Address.
-
setGeoIPTrackingEnabledResult
final static Result<Unit> setGeoIPTrackingEnabledResult(Marigold $self, Boolean enabledGeoIp)
Enabled location tracking based on IP Address. Tracking location tracking is enabled by default. Use this method for users who may not want to have their location tracked at all.
- Parameters:
enabledGeoIp- A boolean value indicating whether or not to disable location based on IP Address.- Returns:
Result representing the outcome of the request.
-
-
-
-