ReadableAsyncBeaconUtils<T> extension
- on
Properties
- isData → bool
-
Available on ReadableBeacon<
ReturnsAsyncValue< , provided by the ReadableAsyncBeaconUtils extensionT> >trueif this is AsyncData. This is equivalent tobeacon.peek().isData.no setter - isError → bool
-
Available on ReadableBeacon<
ReturnsAsyncValue< , provided by the ReadableAsyncBeaconUtils extensionT> >trueif this is AsyncError. This is equivalent tobeacon.peek().isError.no setter - isIdle → bool
-
Available on ReadableBeacon<
ReturnsAsyncValue< , provided by the ReadableAsyncBeaconUtils extensionT> >trueif this is AsyncIdle. This is equivalent tobeacon.peek().isIdle.no setter - isIdleOrLoading → bool
-
Available on ReadableBeacon<
ReturnsAsyncValue< , provided by the ReadableAsyncBeaconUtils extensionT> >trueif this is AsyncIdle or AsyncLoading. This is equivalent tobeacon.peek().isIdleOrLoading.no setter - isLoading → bool
-
Available on ReadableBeacon<
ReturnsAsyncValue< , provided by the ReadableAsyncBeaconUtils extensionT> >trueif this is AsyncLoading. This is equivalent tobeacon.peek().isLoading.no setter - lastData → T?
-
Available on ReadableBeacon<
Returns the last data that was successfully loaded This is useful when you want to display old data when in AsyncError or AsyncLoading state. equivalent toAsyncValue< , provided by the ReadableAsyncBeaconUtils extensionT> >beacon.peek().lastDatano setter
Methods
-
unwrapValue(
) → T -
Available on ReadableBeacon<
If this beacon's value is AsyncData, returns it's value. Otherwise throws an exception. equivalent toAsyncValue< , provided by the ReadableAsyncBeaconUtils extensionT> >beacon.peek().unwrap() -
unwrapValueOrNull(
) → T? -
Available on ReadableBeacon<
If this beacon's value is AsyncData, returns it's value. Otherwise returnsAsyncValue< , provided by the ReadableAsyncBeaconUtils extensionT> >null. equivalent tobeacon.peek().unwrapOrNull()