Ocean
Loading...
Searching...
No Matches
jni/GLFrameView.h
Go to the documentation of this file.
1/*
2 * Copyright (c) Meta Platforms, Inc. and affiliates.
3 *
4 * This source code is licensed under the MIT license found in the
5 * LICENSE file in the root directory of this source tree.
6 */
7
8#ifndef META_OCEAN_PLATFORM_ANDROID_APPLICATION_JNI_GL_FRAME_VIEW_H
9#define META_OCEAN_PLATFORM_ANDROID_APPLICATION_JNI_GL_FRAME_VIEW_H
10
12
13#include <jni.h>
14
15/**
16 * Java native interface function to set or change the view's background media object.
17 * @param env JNI environment
18 * @param javaThis JNI object
19 * @param url URL of the media object to be used as background medium
20 * @param type Hint defining the media object in more detail, possible values are "LIVE_VIDEO", "IMAGE", "MOVIE", "IMAGE_SEQUENCE" or "FRAME_STREAM", if no hint is given the first possible media object will be created
21 * @param preferredWidth Preferred width of the medium in pixel, use 0 to use the default width
22 * @param preferredHeight Preferred height of the medium in pixel, use 0 to use the default height
23 * @param adjustFov True, to adjust the view's field of view to the field of the background automatically
24 * @return True, if succeeded
25 * @ingroup platformandroidapplicationjni
26 */
27extern "C" jboolean Java_com_meta_ocean_platform_android_application_GLFrameView_setFrameMedium(JNIEnv* env, jobject javaThis, jstring url, jstring type, jint preferredWidth, jint preferredHeight, jboolean adjustFov);
28
29/**
30 * Java native interface function to register the instance function for the corresponding native C++ class.
31 * @param env JNI environment
32 * @param javaThis JNI object
33 * @ingroup platformandroidapplicationjni
34 */
36
37#endif // META_OCEAN_PLATFORM_ANDROID_APPLICATION_JNI_GL_FRAME_VIEW_H
void Java_com_meta_ocean_platform_android_application_GLFrameView_registerInstance(JNIEnv *env, jobject javaThis)
Java native interface function to register the instance function for the corresponding native C++ cla...
jboolean Java_com_meta_ocean_platform_android_application_GLFrameView_setFrameMedium(JNIEnv *env, jobject javaThis, jstring url, jstring type, jint preferredWidth, jint preferredHeight, jboolean adjustFov)
Java native interface function to set or change the view's background media object.