android-components / mozilla.components.support.base.ids / SharedIdsHelper

SharedIdsHelper

object SharedIdsHelper (source)

Helper for component and app code to use unique notification ids without conflicts.

Functions

Name Summary
getIdForTag fun getIdForTag(context: <ERROR CLASS>, tag: String): Int
Get a unique notification ID for the provided unique tag.
getNextIdForTag fun getNextIdForTag(context: <ERROR CLASS>, tag: String): Int
Get the next available unique notification ID for the provided unique tag.

Extension Functions

Name Summary
loadResourceAsString fun Any.loadResourceAsString(path: String): String
Loads a file from the resources folder and returns its content as a string object.