Skip to main content

Crate ferroui_android

Crate ferroui_android 

Source
Expand description

The Android platform.

An application is a shared library that the application class of the Java layer of this crate loads (java/org/ferroui/android). There are no windows: content is shown by a [FerroView] in an activity ([FerroActivity]; the main activity shows the main view of the ApplicationLifetime). The system drives everything: the dispatcher is the main looper, rendering follows the choreographer on a render thread, and the surface of the view is drawn through EGL or into the buffer of its native window.

interop is the only place that crosses to Java and to the NDK. The parts that call the system exist on Android only; on another system the crate is the logic of the backend, which its tests run there. The design is in docs/porting/android-platform.md.

Modules§

automation
The accessibility nodes of the automation peers (the Automation directory of the reference): per provider contract of a peer, what a node of the system says of it and which actions it performs.
interop
The boundary to the system: the Java Native Interface ([java]), the functions of the NDK ([ndk]) and the native methods of the Java layer ([natives]). Everything that is unsafe for Java or the NDK is in these modules (docs/porting/android-platform.md, section 2).
log
The log of the system.
platform
The services of the platform (the Platform directory of the reference).

Macros§

android_application
Makes a shared library the native side of an Android application.

Structs§

AndroidBackRequestedEventArgs
AndroidPlatformOptions
The options of the Android platform, registered with the application builder (AppBuilder::with).
ApplicationLifetime
The lifetime of an Android application: every main activity asks the factory for its main view.
CursorFactory
The cursor factory of a platform that shows no cursor of the application: every cursor is the same empty cursor.
PlatformIconLoader
An icon loader for a platform that never shows an icon. The platform registers PlatformIconLoaderStub, as the reference does; this class is kept as the reference has it.
PlatformIconLoaderStub
The icon loader of a platform without window icons: an icon keeps the bytes it was loaded from, so that it can be saved.
WindowingPlatformStub
The windowing platform of Android. There are no windows: content is shown by a view in an activity.

Enums§

AndroidRenderingMode
Represents the rendering mode for platform graphics.

Constants§

PERMISSION_DENIED
PERMISSION_GRANTED
PackageManager.PERMISSION_GRANTED and PERMISSION_DENIED (the Permission of the reference).
RESULT_CANCELED
RESULT_FIRST_USER
RESULT_OK
Activity.RESULT_OK, RESULT_CANCELED and RESULT_FIRST_USER (the Result of the reference).

Traits§

IActivityNavigationService
IActivityResultHandler
IFerroActivity
An activity that shows content of the framework.

Type Aliases§

ActivityResultHandler
The request code, the result code and the intent of the result (an android.content.Intent), if any.
Intent
RequestPermissionsResultHandler
The request code, the permissions and what was granted of each.