Package com.marigold.sdk
Class MarigoldExtensionsKt
-
- All Implemented Interfaces:
public final class MarigoldExtensionsKt
-
-
Field Summary
Fields Modifier and Type Field Description private final static SharedFlow<Pair<Context, Bundle>>
notificationReceivedFlow
private final static SharedFlow<Pair<Context, Bundle>>
notificationTappedFlow
private final static SharedFlow<Triple<Context, Bundle, ActionTapped>>
notificationActionTappedFlow
-
Method Summary
Modifier and Type Method Description final SharedFlow<Pair<Context, Bundle>>
getNotificationReceivedFlow()
final SharedFlow<Pair<Context, Bundle>>
getNotificationTappedFlow()
final SharedFlow<Triple<Context, Bundle, ActionTapped>>
getNotificationActionTappedFlow()
final static String
getDeviceId(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 Unit
setGeoIPTrackingEnabled(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()
-
getNotificationTappedFlow
final SharedFlow<Pair<Context, Bundle>> getNotificationTappedFlow()
-
getNotificationActionTappedFlow
final SharedFlow<Triple<Context, Bundle, ActionTapped>> getNotificationActionTappedFlow()
-
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.
-
-
-
-