createNamedRemoteImageBitmap
Source set: Android
public fun RemoteImageBitmap.Companion.createNamedRemoteImageBitmap(
name: String,
defaultValue: ImageBitmap,
domain: RemoteState.Domain = RemoteState.Domain.User,
): RemoteImageBitmap
Creates a named RemoteImageBitmap with an initial value.
Named remote bitmaps can be set via AndroidRemoteContext.setNamedBitmap.
Parameters
| name | A unique name to identify this state within its domain. |
| defaultValue | The initial ImageBitmap value for the named remote bitmap. |
| domain | The domain for the named state. Defaults to RemoteState.Domain.User. |
Return
A RemoteImageBitmap representing the named bitmap.
createNamedRemoteImageBitmap
Source set: Android
public fun RemoteImageBitmap.Companion.createNamedRemoteImageBitmap(
name: String,
domain: RemoteState.Domain = RemoteState.Domain.User,
value: () -> ImageBitmap,
): RemoteImageBitmap
Creates a named RemoteImageBitmap with a deferred initial value.
Parameters
| name | unique name to identify this state within its domain |
| domain | domain for the named state, defaults to RemoteState.Domain.User |
| value | provider of the initial ImageBitmap value |
Return
a RemoteImageBitmap representing the named bitmap
createNamedRemoteImageBitmap
Source set: Android
public fun createNamedRemoteImageBitmap(
name: String,
defaultValue: ImageBitmap,
domain: RemoteState.Domain = RemoteState.Domain.User,
): RemoteImageBitmap
Creates a named RemoteImageBitmap with an initial value.
Parameters
| name | A unique name to identify this state within its domain. |
| defaultValue | The initial ImageBitmap value for the named remote bitmap. |
| domain | The domain for the named state. Defaults to RemoteState.Domain.User. |
Return
A RemoteImageBitmap representing the named bitmap.
createNamedRemoteImageBitmap
Source set: Android
public fun createNamedRemoteImageBitmap(
name: String,
domain: RemoteState.Domain = RemoteState.Domain.User,
value: () -> ImageBitmap,
): RemoteImageBitmap
Creates a named RemoteImageBitmap with a deferred initial value.
Parameters
| name | A unique name to identify this state within its domain. |
| domain | The domain for the named state. Defaults to RemoteState.Domain.User. |
| value | Provider of the initial ImageBitmap value. |
Return
A RemoteImageBitmap representing the named bitmap.