getTemplateFieldAtIndex

fun getTemplateFieldAtIndex(index: Int, notificationExtras: <Error class: unknown class>, actionFieldKeyTemplate: String): String?

Returns the value for the given template field key at the specified index.

Return

the desired notification action field value or the empty string if not present

Parameters

index

the index of the desired template

notificationExtras

Notification bundle containing the data

actionFieldKeyTemplate

the template of the action field


fun getTemplateFieldAtIndex(index: Int, notificationExtras: <Error class: unknown class>, actionFieldKeyTemplate: String, defaultValue: String?): String?

Returns the value for the given template field key at the specified index.

Return

the desired notification action field value or the empty string if not present

Parameters

index

the index of the desired template

notificationExtras

Notification bundle containing the data

actionFieldKeyTemplate

the template of the action field

defaultValue

the default value to return if the value for the key in notificationExtras is null.


fun getTemplateFieldAtIndex(actionIndex: Int, notificationExtras: <Error class: unknown class>, actionFieldKeyTemplate: String, defaultValue: Boolean): Boolean

Returns the boolean value for the given template field key at the specified index.

Return

the desired notification action field value or the empty string if not present

Parameters

actionIndex

the index of the desired template

notificationExtras

Notification bundle containing the data

actionFieldKeyTemplate

the template of the action field

defaultValue

the default value to return if the value for the key in notificationExtras is null or can't be parsed as a boolean.


fun getTemplateFieldAtIndex(actionIndex: Int, notificationExtras: <Error class: unknown class>, actionFieldKeyTemplate: String, defaultValue: Long): Long

Returns the boolean value for the given template field key at the specified index.

Return

the desired notification action field value or the empty string if not present

Parameters

actionIndex

the index of the desired template

notificationExtras

Notification bundle containing the data

actionFieldKeyTemplate

the template of the action field

defaultValue

the default value to return if the value for the key in notificationExtras is null or can't be parsed as a long.