Package com.motorro.keeplink.push.data

Data classes to represent a push-message with an action

Types

Link copied to clipboard
data class LocalizedText

A string with localization properties

Link copied to clipboard
data class Notification

Push-message notification

Link copied to clipboard
data class PushMessage<out A : Action> : WithAction<A>

Common (cross-platform) push-message structure

Functions

Link copied to clipboard
fun localizedNotification(title: LocalizedText, text: LocalizedText): Notification

Creates basic notification

Link copied to clipboard
fun localizedText(    value: String,     localizationKey: String,     localizationArgs: Array<String>): LocalizedText

Creates text with localization

Link copied to clipboard
fun notification(title: String, text: String): Notification

Creates basic notification

Link copied to clipboard
fun <A : Action> pushMessage(    id: String,     ttl: Int,     deepLink: DeepLink<A>): PushMessage<A>

Creates cross-platform push-message

Link copied to clipboard
fun text(value: String): LocalizedText

Creates text with no localization