5#ifndef FLUTTER_TESTING_ANDROID_NATIVE_ACTIVITY_NATIVE_ACTIVITY_H_
6#define FLUTTER_TESTING_ANDROID_NATIVE_ACTIVITY_NATIVE_ACTIVITY_H_
8#include <android/native_activity.h>
10#include "flutter/fml/macros.h"
11#include "flutter/fml/mapping.h"
70 ANativeActivity* activity_ =
nullptr;
76 ANativeActivity* activity,
An instance of a native activity. Users of the native_activity_apk are meant to subclass this and ret...
virtual ~NativeActivity()
virtual void OnNativeWindowCreated(ANativeWindow *window)
virtual void OnNativeWindowResized(ANativeWindow *window)
void Terminate()
Perform graceful termination of the activity. Will eventually lead to the other activity lifecycle ca...
virtual void OnInputQueueDestroyed(AInputQueue *queue)
virtual void OnNativeWindowRedrawNeeded(ANativeWindow *window)
virtual void OnNativeWindowDestroyed(ANativeWindow *window)
virtual void OnLowMemory()
NativeActivity(ANativeActivity *activity)
virtual void OnInputQueueCreated(AInputQueue *queue)
virtual void OnConfigurationChanged()
virtual std::shared_ptr< fml::Mapping > OnSaveInstanceState()
virtual void OnWindowFocusChanged(bool has_focus)
std::unique_ptr< NativeActivity > NativeActivityMain(ANativeActivity *activity, std::unique_ptr< fml::Mapping > saved_state)
struct ANativeWindow ANativeWindow