polyhorn_android/
lib.rs

1//! This crate implements Polyhorn for Android.
2
3pub use polyhorn_core::{
4    render, Context, ContextProvider, Key, Link, Receiver, Reference, Sender, State,
5};
6pub use polyhorn_ui::{assets, color, font, geometry, layout, linalg, styles};
7pub use polyhorn_ui_macros::render;
8
9pub mod components;
10// pub mod handles;
11pub mod prelude;
12pub mod raw;
13
14/// Re-exports of hooks provided by Polyhorn Core and Polyhorn UI.
15pub mod hooks {
16    pub use polyhorn_core::{
17        use_async, use_context, use_effect, use_id, use_reference, use_state, UseAsync, UseContext,
18        UseEffect, UseReference,
19    };
20    pub use polyhorn_ui::hooks::*;
21}
22
23use raw::Platform;
24
25/// Polyhorn core element type that is specialized for the iOS platform.
26pub type Element = polyhorn_core::Element<Platform>;
27
28/// Polyhorn core instance type that is specialized for the iOS platform.
29pub type Instance = polyhorn_core::Instance<Platform>;
30
31/// Polyhorn core manager type that is specialized for the iOS platform.
32pub type Manager<'a> = polyhorn_core::Manager<'a, Platform>;
33
34/// Polyhorn core weak type that is specialized for the iOS platform.
35pub type Weak = polyhorn_core::Weak<Platform>;
36
37/// Polyhorn core weak link type that is specialized for the iOS platform.
38pub type WeakLink<'a> = polyhorn_core::WeakLink<'a, Platform>;
39
40/// Polyhorn core weak reference type that is specialized for the iOS platform.
41pub type WeakReference<T> = polyhorn_core::WeakReference<Platform, T>;
42
43/// Polyhorn core weak state type that is specialized for the iOS platform.
44pub type WeakState<T> = polyhorn_core::WeakState<Platform, T>;
45
46pub use raw::Component;