1 // Copyright 2013 The Flutter Authors. All rights reserved. 2 // Use of this source code is governed by a BSD-style license that can be 3 // found in the LICENSE file. 4 5 #ifndef FLUTTER_SHELL_PLATFORM_ANDROID_PLATFORM_VIEW_ANDROID_JNI_H_ 6 #define FLUTTER_SHELL_PLATFORM_ANDROID_PLATFORM_VIEW_ANDROID_JNI_H_ 7 8 #include <jni.h> 9 #include "flutter/fml/macros.h" 10 #include "flutter/shell/platform/android/platform_view_android.h" 11 12 namespace flutter { 13 14 void FlutterViewHandlePlatformMessage(JNIEnv* env, 15 jobject obj, 16 jstring channel, 17 jobject message, 18 jint responseId); 19 20 void FlutterViewHandlePlatformMessageResponse(JNIEnv* env, 21 jobject obj, 22 jint responseId, 23 jobject response); 24 25 void FlutterViewUpdateSemantics(JNIEnv* env, 26 jobject obj, 27 jobject buffer, 28 jobjectArray strings); 29 30 void FlutterViewUpdateCustomAccessibilityActions(JNIEnv* env, 31 jobject obj, 32 jobject buffer, 33 jobjectArray strings); 34 35 void FlutterViewOnFirstFrame(JNIEnv* env, jobject obj); 36 37 void FlutterViewOnPreEngineRestart(JNIEnv* env, jobject obj); 38 39 void SurfaceTextureAttachToGLContext(JNIEnv* env, jobject obj, jint textureId); 40 41 void SurfaceTextureUpdateTexImage(JNIEnv* env, jobject obj); 42 43 void SurfaceTextureGetTransformMatrix(JNIEnv* env, 44 jobject obj, 45 jfloatArray result); 46 47 void SurfaceTextureDetachFromGLContext(JNIEnv* env, jobject obj); 48 49 } // namespace flutter 50 51 #endif // FLUTTER_SHELL_PLATFORM_ANDROID_PLATFORM_VIEW_ANDROID_JNI_H_ 52