interface DeviceNotificationConfig
actionAppId
: String?
[Get] |
The app id for an optional notification action which will be used to open the specified app when the action button is clicked.
Signature
abstract val actionAppId: String? |
actionDisplayType
: ActionDisplayType?
[Get] |
The notification action display type, which determines whether actions are displayed as ICONABLE, ICONABLE_COLORLESS, or TEXT_ONLY. (see https://fburl.com/code/nfqxeecd)
Signature
abstract val actionDisplayType: ActionDisplayType? |
actionIcon
: ActionIcon?
[Get] |
The icon enum that specifies the icon for an optional notification action which will be used to open the app or perform another action when the action button is clicked.
Signature
abstract val actionIcon: ActionIcon? |
actionIntentData
: String?
[Get] |
The intent for an optional notification action which will be used to launch and intent with the specified intent data.
Signature
abstract val actionIntentData: String? |
actionIntentExtras
: String?
[Get] |
The String JSON List of intent extras for an optional notification action which will be used to launch an intent with the specified intent extras.
Signature
abstract val actionIntentExtras: String? |
actionPackageName
: String?
[Get] |
The package name for an optional notification action which will be used to open the specified package when the action button is clicked.
Signature
abstract val actionPackageName: String? |
actionTitle
: String?
[Get] |
The title for an optional notification action which will be used to open the app or perform another action when the action button is clicked.
Signature
abstract val actionTitle: String? |
appPackageNameForAppIcon
: String?
[Get] |
This variable holds the app package name associated with the app icon shown in the notification body. It is only required when your app displays a notification with a different app icon.
Signature
abstract val appPackageNameForAppIcon: String? |
isToastOnly
: Boolean?
[Get] |
Indicates whether the notification should only be displayed as a toast. If true, the notification will not appear in notification feed.
Signature
abstract val isToastOnly: Boolean? |
mediaAttachmentUri
: String?
[Get] |
The attached image uri for the notification.
Signature
abstract val mediaAttachmentUri: String? |
message
: String
[Get] |
The message body for the notification.
Signature
abstract val message: String |
ndid
: String?
[Get] |
The notification delivery id used to track this notification. Make sure you never pass in same ndid for different notification instance, otherwise the notification won't be present.
Signature
abstract val ndid: String? |
title
: String
[Get] |
The title for the notification.
Signature
abstract val title: String |
builder
()
|
Signature
fun builder(): DeviceNotificationConfig.Builder Returns DeviceNotificationConfig.Builder |
interface Builder
build
()
|
Signature
abstract fun build(): DeviceNotificationConfig Returns DeviceNotificationConfig |
withActionAppId
(
actionAppId
)
|
Signature
abstract fun withActionAppId(actionAppId: String?): DeviceNotificationConfig.Builder Parameters actionAppId: String?Returns DeviceNotificationConfig.Builder |
withActionDisplayType
(
actionDisplayType
)
|
Signature
abstract fun withActionDisplayType(actionDisplayType: ActionDisplayType?): DeviceNotificationConfig.Builder Parameters actionDisplayType: ActionDisplayType?Returns DeviceNotificationConfig.Builder |
withActionIcon
(
actionIcon
)
|
Signature
abstract fun withActionIcon(actionIcon: ActionIcon?): DeviceNotificationConfig.Builder Parameters actionIcon: ActionIcon?Returns DeviceNotificationConfig.Builder |
withActionIntentData
(
actionIntentData
)
|
Signature
abstract fun withActionIntentData(actionIntentData: String?): DeviceNotificationConfig.Builder Parameters actionIntentData: String?Returns DeviceNotificationConfig.Builder |
withActionIntentExtras
(
actionIntentExtras
)
|
Signature
abstract fun withActionIntentExtras(actionIntentExtras: String?): DeviceNotificationConfig.Builder Parameters actionIntentExtras: String?Returns DeviceNotificationConfig.Builder |
withActionPackageName
(
actionPackageName
)
|
Signature
abstract fun withActionPackageName(actionPackageName: String?): DeviceNotificationConfig.Builder Parameters actionPackageName: String?Returns DeviceNotificationConfig.Builder |
withActionTitle
(
actionTitle
)
|
Signature
abstract fun withActionTitle(actionTitle: String?): DeviceNotificationConfig.Builder Parameters actionTitle: String?Returns DeviceNotificationConfig.Builder |
withAppPackageNameForAppIcon
(
appPackageNameForAppIcon
)
|
Signature
abstract fun withAppPackageNameForAppIcon(appPackageNameForAppIcon: String?): DeviceNotificationConfig.Builder Parameters appPackageNameForAppIcon: String?Returns DeviceNotificationConfig.Builder |
withIsToastOnly
(
isToastOnly
)
|
Signature
abstract fun withIsToastOnly(isToastOnly: Boolean?): DeviceNotificationConfig.Builder Parameters isToastOnly: Boolean?Returns DeviceNotificationConfig.Builder |
withMediaAttachmentUri
(
mediaAttachmentUri
)
|
Signature
abstract fun withMediaAttachmentUri(mediaAttachmentUri: String?): DeviceNotificationConfig.Builder Parameters mediaAttachmentUri: String?Returns DeviceNotificationConfig.Builder |
withMessage
(
message
)
|
Signature
abstract fun withMessage(message: String): DeviceNotificationConfig.Builder Parameters message: StringReturns DeviceNotificationConfig.Builder |
withNdid
(
ndid
)
|
Signature
abstract fun withNdid(ndid: String?): DeviceNotificationConfig.Builder Parameters ndid: String?Returns DeviceNotificationConfig.Builder |
withTitle
(
title
)
|
Signature
abstract fun withTitle(title: String): DeviceNotificationConfig.Builder Parameters title: StringReturns DeviceNotificationConfig.Builder |