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 IsScreenRound() const -> bool
Returns true if the main screen is round.
auto OpenUrl(StringView url) -> bool override
Opens the specified URL in a default web browser.
void HandleBackInvoked()
Handles invocation of the Back gesture.
void HandleIntent(StringView action, StringView uri)
Handles the intent sent to the application activity.
void HandleContentBoundsChanged(Recti bounds)
Handles changes of content bounds.
auto CanShowScreenKeyboard() -> bool override
Returns true if screen (software) keyboard is supported and ShowScreenKeyboard() should succeed.
auto ToggleScreenKeyboard() -> bool override
Toggles the screen (software) keyboard.
auto ShowScreenKeyboard() -> bool override
Shows the screen (software) keyboard.
auto HideScreenKeyboard() -> bool override
Hides the screen (software) keyboard.

Friends

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