withLongText

Sets the text of the notification when it's expanded

Author

Arnau Mora

Since

20210313

Return

The Builder instance

Parameters

longText

The text of the notification when expanded


fun withLongText(@StringRes longTextRes: Int, vararg args: Any): Notification.Builder

Sets the text of the notification when it's expanded from a resource

Author

Arnau Mora

Since

20210313

Return

The Builder instance

Parameters

longTextRes

The StringRes of the notification when expanded

args

The arguments for replacing placeholders in the text