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 |
|
String |
Returns a string representation of the id that can be used for logging and debugging. |
open Int |
hashCode() |
open String |
toString() |
Public properties |
|
|---|---|
Int |
The integer id of this instance |
String |
The namespace indicating the Host where the id is generated |
Public constructors
Public functions
flattenToString
Added in 1.0.0-alpha14
fun flattenToString(): String
Returns a string representation of the id that can be used for logging and debugging.
Public properties
namespace
Added in 1.0.0-alpha14
val namespace: String
The namespace indicating the Host where the id is generated