Package org.brightify.hyperdrive.multiplatformx

Types

AutoFactory
Link copied to clipboard
annotation class AutoFactory
Enables automatic factory generation for the annotated class, or a class containing the annotated constructor.
BaseObservableManageableObject
Link copied to clipboard
BaseObservableObject
Link copied to clipboard
abstract class BaseObservableObject : ObservableObject
Base for implementing observable objects.
BaseViewModel
Link copied to clipboard
abstract class BaseViewModel : BaseObservableManageableObject, ManageableViewModel

Common behavior for all view models.

This class inherits property delegates for change tracking and observing from BaseObservableManageableObject and BaseObservableObject.
CancellationToken
Link copied to clipboard
interface CancellationToken
Implemented by classes that contain some form of cancellation logic.
ComputedObservable
Link copied to clipboard
annotation class ComputedObservable
EnhanceMultiplatform
Link copied to clipboard
@Target(allowedTargets = [AnnotationTarget.CLASS])
annotation class EnhanceMultiplatform
InterfaceLock
Link copied to clipboard
class InterfaceLock(lifecycle: Lifecycle, group: InterfaceLock.Group)
Locking for user interface operations.
Lifecycle
Link copied to clipboard
typealias Lifecycle = LifecycleGraph.Node
LifecycleGraph
Link copied to clipboard
sealed class LifecycleGraph
This class is NOT thread-safe.
LifecycleListener
Link copied to clipboard
interface LifecycleListener
ManageableObject
Link copied to clipboard
interface ManageableObject
An object that can be managed and a part of the lifecycle graph.
ManageableViewModel
Link copied to clipboard
interface ManageableViewModel : ObservableManageableObject
Managed
Link copied to clipboard
annotation class Managed
Model
Link copied to clipboard
annotation class Model
ObservableManageableObject
Link copied to clipboard
interface ObservableManageableObject : ObservableObject, ManageableObject
ObservableObject
Link copied to clipboard
interface ObservableObject
An observable object that provides a ChangeTracking instance.
Provided
Link copied to clipboard
annotation class Provided
Marks a constructor parameter as provided.
Published
Link copied to clipboard
annotation class Published
ViewModel
Link copied to clipboard
@Target(allowedTargets = [AnnotationTarget.CLASS])
annotation class ViewModel(observableDelegates: Array<String>)
Enables generating enhancements for the annotated class.

Functions

attachToMainScope
Link copied to clipboard
fun LifecycleGraph.Root.attachToMainScope(): CancellationToken
fun LifecycleGraph.Root.attachToMainScope(unhandledExceptionHandler: (CoroutineContext, Throwable) -> Unit): CancellationToken
collectWhileAttached
Link copied to clipboard
fun <T : Any> NonNullFlowWrapper<T>.collectWhileAttached(lifecycle: Lifecycle, collection: (T) -> Unit)
concat
Link copied to clipboard
fun Iterable<CancellationToken>.concat(): CancellationToken
Combine all contained CancellationToken instances into one.
LifecycleRoot
Link copied to clipboard
fun LifecycleRoot(owner: Any? = null): LifecycleGraph.Root

Properties

MultiplatformGlobalScope
Link copied to clipboard
val MultiplatformGlobalScope: CoroutineScope