Package-level declarations

Types

Link copied to clipboard
@Stable
abstract class BasicPlatformView<T : Any>

对于 PlatformView 目前有两类模式

Link copied to clipboard
@Stable
abstract class PlatformView<V : View> : BasicPlatformView<V>
@Stable
abstract class PlatformView<V : Component> : BasicPlatformView<V>
@Stable
abstract class PlatformView<V : UIView> : BasicPlatformView<V>
@Stable
abstract class PlatformView<V : HTMLElement> : BasicPlatformView<V>
Link copied to clipboard
@Stable
interface Releasable<T : Any>

可清理的 PlatformView, 可以用于释放资源

Link copied to clipboard
@Stable
interface Resettable<T : Any>

可重置的 PlatformView, 可以用于 ListView 下共享复用 Host 实例

Link copied to clipboard
@Stable
interface Updatable<T : Any>

可刷新的 PlatformView, 可以简化 LaunchEffect 调用

Functions

Link copied to clipboard
@Composable
inline fun <T : Any, V : BasicPlatformView<T>> rememberPlatformView(crossinline factory: @DisallowComposableCalls () -> V): V
@Composable
inline fun <T : Any, V : BasicPlatformView<T>, S1> rememberPlatformView(arg1: S1, crossinline factory: @DisallowComposableCalls (State<S1>) -> V): V
@Composable
inline fun <T : Any, V : BasicPlatformView<T>, S1, S2> rememberPlatformView(arg1: S1, arg2: S2, crossinline factory: @DisallowComposableCalls (State<S1>, State<S2>) -> V): V
@Composable
inline fun <T : Any, V : BasicPlatformView<T>, S1, S2, S3> rememberPlatformView(arg1: S1, arg2: S2, arg3: S3, crossinline factory: @DisallowComposableCalls (State<S1>, State<S2>, State<S3>) -> V): V
@Composable
inline fun <T : Any, V : BasicPlatformView<T>, S1, S2, S3, S4> rememberPlatformView(arg1: S1, arg2: S2, arg3: S3, arg4: S4, crossinline factory: @DisallowComposableCalls (State<S1>, State<S2>, State<S3>, State<S4>) -> V): V
@Composable
inline fun <T : Any, V : BasicPlatformView<T>, S1, S2, S3, S4, S5> rememberPlatformView(arg1: S1, arg2: S2, arg3: S3, arg4: S4, arg5: S5, crossinline factory: @DisallowComposableCalls (State<S1>, State<S2>, State<S3>, State<S4>, State<S5>) -> V): V