summaryrefslogtreecommitdiff
path: root/include/android/surface_texture_jni.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/android/surface_texture_jni.h')
-rw-r--r--include/android/surface_texture_jni.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/include/android/surface_texture_jni.h b/include/android/surface_texture_jni.h
index 8448d8cafa..2266d541f6 100644
--- a/include/android/surface_texture_jni.h
+++ b/include/android/surface_texture_jni.h
@@ -32,6 +32,8 @@
__BEGIN_DECLS
+#if __ANDROID_API__ >= 28
+
/**
* Get a reference to the native ASurfaceTexture from the corresponding java object.
*
@@ -50,8 +52,8 @@ __BEGIN_DECLS
*/
ASurfaceTexture* ASurfaceTexture_fromSurfaceTexture(JNIEnv* env, jobject surfacetexture) __INTRODUCED_IN(28);
+#endif
+
__END_DECLS
#endif /* ANDROID_NATIVE_SURFACE_TEXTURE_JNI_H */
-
-/** @} */