WidgetInstanceId

class WidgetInstanceId


An identifier for a widget instance.

This is an id that is created by the system and passed to the widget provider. The id is unique for each widget instance and is persistent across device reboots.

Summary

Public constructors

WidgetInstanceId(namespace: String, id: Int)

Public functions

open operator Boolean
equals(other: Any?)
String

Returns a string representation of the id that can be used for logging and debugging.

open Int
open String

Public properties

Int

The integer id of this instance

String

The namespace indicating the Host where the id is generated

Public constructors

WidgetInstanceId

Added in 1.0.0-alpha01
WidgetInstanceId(namespace: String, id: Int)

Public functions

equals

open operator fun equals(other: Any?): Boolean

flattenToString

Added in 1.0.0-alpha01
fun flattenToString(): String

Returns a string representation of the id that can be used for logging and debugging.

hashCode

open fun hashCode(): Int

toString

open fun toString(): String

Public properties

id

Added in 1.0.0-alpha01
val idInt

The integer id of this instance

namespace

Added in 1.0.0-alpha01
val namespaceString

The namespace indicating the Host where the id is generated