nCine::AndroidApplication class

Main entry point and handler for Android applications.

Base classes

class Application
Base class for main entry points of nCine applications.

Public static functions

static void Run(struct android_app* state, CreateAppEventHandlerDelegate createAppEventHandler)
Entry point method to be called in the android_main() function.
static void ProcessCommand(struct android_app* state, std::int32_t cmd)
Processes an Android application command.

Public functions

auto IsInitialized() const -> bool
Returns true if the application has already called Init()
auto GetPackageName() const -> const char*
Returns the package name for the Android application.
auto OpenUrl(StringView url) -> bool override
Opens the specified URL in a default web browser.
void HandleIntent(StringView action, StringView uri)
Handles the intent sent to the application activity.
void HandleContentBoundsChanged(Recti bounds)
Handles changes of content bounds.
void ToggleSoftInput()
Toggles the software keyboard.
auto ShowSoftInput() -> bool
Shows the software keyboard.
auto HideSoftInput() -> bool
Hides the software keyboard.

Friends

auto theApplication() -> Application&
Returns application instance.