Ocean

The Ocean Android Platform Application Library provides JNI functionalities for applications on Android platforms. More...

Collaboration diagram for Ocean Platform Android Application JNI Library:

Functions

jboolean Java_com_meta_ocean_platform_android_application_GLFrameView_setFovX (JNIEnv *env, jobject javaThis, jdouble angle)
 Java native interface function to set or change the view's horizontal field of view. More...
 
jboolean Java_com_meta_ocean_platform_android_application_GLFrameView_setBackgroundColor (JNIEnv *env, jobject javaThis, jdouble red, jdouble green, jdouble blue)
 Java native interface function to set or change the view's background color. More...
 
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. More...
 
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++ class. More...
 
jboolean Java_com_meta_ocean_platform_android_application_GLView_initialize (JNIEnv *env, jobject javaThis)
 Java native interface function to initialize the application view. More...
 
jboolean Java_com_meta_ocean_platform_android_application_GLView_release (JNIEnv *env, jobject javaThis)
 Java native interface function to release the application view. More...
 
jboolean Java_com_meta_ocean_platform_android_application_GLView_resize (JNIEnv *env, jobject javaThis, jint width, jint height)
 Java native interface function resizing the framebuffer. More...
 
jboolean Java_com_meta_ocean_platform_android_application_GLView_render (JNIEnv *env, jobject javaThis)
 Java native interface function rendering the next frame. More...
 
void Java_com_meta_ocean_platform_android_application_GLView_onTouchDown (JNIEnv *env, jobject javaThis, jfloat x, jfloat y)
 Java native interface function for touch down events. More...
 
void Java_com_meta_ocean_platform_android_application_GLView_onTouchMove (JNIEnv *env, jobject javaThis, jfloat x, jfloat y)
 Java native interface function for (touch) move events. More...
 
void Java_com_meta_ocean_platform_android_application_GLView_onTouchUp (JNIEnv *env, jobject javaThis, jfloat x, jfloat y)
 Java native interface function for touch up events. More...
 
void Java_com_meta_ocean_platform_android_application_GLView_onActivityResume (JNIEnv *env, jobject javaThis)
 Java native interface function for resume events. More...
 
void Java_com_meta_ocean_platform_android_application_GLView_onActivityPause (JNIEnv *env, jobject javaThis)
 Java native interface function for pause events. More...
 
void Java_com_meta_ocean_platform_android_application_GLView_onActivityStop (JNIEnv *env, jobject javaThis)
 Java native interface function for stop events. More...
 
void Java_com_meta_ocean_platform_android_application_GLView_onActivityDestroy (JNIEnv *env, jobject javaThis)
 Java native interface function for destroy events. More...
 
void Java_com_meta_ocean_platform_android_application_GLView_onPermissionGranted (JNIEnv *env, jobject javaThis, jstring permission)
 Java native interface function for permission granted events. More...
 
void Java_com_meta_ocean_platform_android_application_GLView_registerInstance (JNIEnv *env, jobject javaThis)
 Java native interface function to register the instance function for the corresponding native C++ class. More...
 

Detailed Description

The Ocean Android Platform Application Library provides JNI functionalities for applications on Android platforms.

The library is available on Android platforms only.

Function Documentation

◆ Java_com_meta_ocean_platform_android_application_GLFrameView_registerInstance()

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++ class.

Parameters
envJNI environment
javaThisJNI object

◆ Java_com_meta_ocean_platform_android_application_GLFrameView_setBackgroundColor()

jboolean Java_com_meta_ocean_platform_android_application_GLFrameView_setBackgroundColor ( JNIEnv *  env,
jobject  javaThis,
jdouble  red,
jdouble  green,
jdouble  blue 
)

Java native interface function to set or change the view's background color.

Parameters
envJNI environment
javaThisJNI object
redRed color value, with range [0.0, 1.0]
greenGreen color value, with range [0.0, 1.0]
blueBlue color value, with range [0.0, 1.0]
Returns
True, if succeeded

◆ Java_com_meta_ocean_platform_android_application_GLFrameView_setFovX()

jboolean Java_com_meta_ocean_platform_android_application_GLFrameView_setFovX ( JNIEnv *  env,
jobject  javaThis,
jdouble  angle 
)

Java native interface function to set or change the view's horizontal field of view.

Parameters
envJNI environment
javaThisJNI object
angleNew horizontal field of view in radian
Returns
True, if succeeded

◆ Java_com_meta_ocean_platform_android_application_GLFrameView_setFrameMedium()

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.

Parameters
envJNI environment
javaThisJNI object
urlURL of the media object to be used as background medium
typeHint 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
preferredWidthPreferred width of the medium in pixel, use 0 to use the default width
preferredHeightPreferred height of the medium in pixel, use 0 to use the default height
adjustFovTrue, to adjust the view's field of view to the field of the background automatically
Returns
True, if succeeded

◆ Java_com_meta_ocean_platform_android_application_GLView_initialize()

jboolean Java_com_meta_ocean_platform_android_application_GLView_initialize ( JNIEnv *  env,
jobject  javaThis 
)

Java native interface function to initialize the application view.

Parameters
envJNI environment
javaThisJNI object
Returns
True, if succeeded

◆ Java_com_meta_ocean_platform_android_application_GLView_onActivityDestroy()

void Java_com_meta_ocean_platform_android_application_GLView_onActivityDestroy ( JNIEnv *  env,
jobject  javaThis 
)

Java native interface function for destroy events.

Parameters
envJNI environment
javaThisJNI object

◆ Java_com_meta_ocean_platform_android_application_GLView_onActivityPause()

void Java_com_meta_ocean_platform_android_application_GLView_onActivityPause ( JNIEnv *  env,
jobject  javaThis 
)

Java native interface function for pause events.

Parameters
envJNI environment
javaThisJNI object

◆ Java_com_meta_ocean_platform_android_application_GLView_onActivityResume()

void Java_com_meta_ocean_platform_android_application_GLView_onActivityResume ( JNIEnv *  env,
jobject  javaThis 
)

Java native interface function for resume events.

Parameters
envJNI environment
javaThisJNI object

◆ Java_com_meta_ocean_platform_android_application_GLView_onActivityStop()

void Java_com_meta_ocean_platform_android_application_GLView_onActivityStop ( JNIEnv *  env,
jobject  javaThis 
)

Java native interface function for stop events.

Parameters
envJNI environment
javaThisJNI object

◆ Java_com_meta_ocean_platform_android_application_GLView_onPermissionGranted()

void Java_com_meta_ocean_platform_android_application_GLView_onPermissionGranted ( JNIEnv *  env,
jobject  javaThis,
jstring  permission 
)

Java native interface function for permission granted events.

Parameters
envJNI environment
javaThisJNI object
permissionThe permission which has been granted

◆ Java_com_meta_ocean_platform_android_application_GLView_onTouchDown()

void Java_com_meta_ocean_platform_android_application_GLView_onTouchDown ( JNIEnv *  env,
jobject  javaThis,
jfloat  x,
jfloat  y 
)

Java native interface function for touch down events.

Parameters
envJNI environment
javaThisJNI object
xHorizontal touch position in pixel
yVertical touch position in pixel

◆ Java_com_meta_ocean_platform_android_application_GLView_onTouchMove()

void Java_com_meta_ocean_platform_android_application_GLView_onTouchMove ( JNIEnv *  env,
jobject  javaThis,
jfloat  x,
jfloat  y 
)

Java native interface function for (touch) move events.

Parameters
envJNI environment
javaThisJNI object
xHorizontal (touch) move position in pixel
yVertical (touch) move position in pixel

◆ Java_com_meta_ocean_platform_android_application_GLView_onTouchUp()

void Java_com_meta_ocean_platform_android_application_GLView_onTouchUp ( JNIEnv *  env,
jobject  javaThis,
jfloat  x,
jfloat  y 
)

Java native interface function for touch up events.

Parameters
envJNI environment
javaThisJNI object
xHorizontal touch position in pixel
yVertical touch position in pixel

◆ Java_com_meta_ocean_platform_android_application_GLView_registerInstance()

void Java_com_meta_ocean_platform_android_application_GLView_registerInstance ( JNIEnv *  env,
jobject  javaThis 
)

Java native interface function to register the instance function for the corresponding native C++ class.

Parameters
envJNI environment
javaThisJNI object

◆ Java_com_meta_ocean_platform_android_application_GLView_release()

jboolean Java_com_meta_ocean_platform_android_application_GLView_release ( JNIEnv *  env,
jobject  javaThis 
)

Java native interface function to release the application view.

Parameters
envJNI environment
javaThisJNI object
Returns
True, if succeeded

◆ Java_com_meta_ocean_platform_android_application_GLView_render()

jboolean Java_com_meta_ocean_platform_android_application_GLView_render ( JNIEnv *  env,
jobject  javaThis 
)

Java native interface function rendering the next frame.

Parameters
envJNI environment
javaThisJNI object
Returns
True, if succeeded

◆ Java_com_meta_ocean_platform_android_application_GLView_resize()

jboolean Java_com_meta_ocean_platform_android_application_GLView_resize ( JNIEnv *  env,
jobject  javaThis,
jint  width,
jint  height 
)

Java native interface function resizing the framebuffer.

Parameters
envJNI environment
javaThisJNI object
widthHorizontal window size position in pixel
heightVertical window size in pixel