[][src]Function polyhorn_android::render

pub fn render<F, P>(
    element: F,
    container: <P as Platform>::Container
) -> Disposable where
    F: FnOnce() -> Element<P> + Send + 'static,
    P: Platform + ?Sized

This is the entry point of Polyhorn. This function renders an element into the given container. The returned instance must be retained. Once the returned is dropped, all UI will be unmounted.