Ocean
OceanUSBManager.h File Reference

Go to the source code of this file.

Data Structures

class  Ocean::System::USB::Android::OceanUSBManager
 This class implements the native version of the USB manager for Android. More...
 
class  Ocean::System::USB::Android::OceanUSBManager::DeviceDescriptor
 This class holds the relevant information of a USB device. More...
 

Namespaces

 Ocean
 The namespace covering the entire Ocean framework.
 
 Ocean::System
 Namespace of the System library.
 
 Ocean::System::USB
 Namespace of the System library USB.
 
 Ocean::System::USB::Android
 Namespace of the System library USB Android.
 

Functions

bool Java_com_meta_ocean_system_usb_android_OceanUSBManager_initialize (JNIEnv *env, jobject javaThis)
 Native interface function to initialize the manager, this function should be called from the main thread. More...
 
void Java_com_meta_ocean_system_usb_android_OceanUSBManager_onDevicePermission (JNIEnv *env, jobject javaThis, jstring deviceName, jboolean granted)
 Native interface function for device permission events. More...
 

Function Documentation

◆ Java_com_meta_ocean_system_usb_android_OceanUSBManager_initialize()

bool Java_com_meta_ocean_system_usb_android_OceanUSBManager_initialize ( JNIEnv *  env,
jobject  javaThis 
)

Native interface function to initialize the manager, this function should be called from the main thread.

Parameters
envNative interface environment, must be valid
javaThisJNI object, must be valid
Returns
True, if succeeded

◆ Java_com_meta_ocean_system_usb_android_OceanUSBManager_onDevicePermission()

void Java_com_meta_ocean_system_usb_android_OceanUSBManager_onDevicePermission ( JNIEnv *  env,
jobject  javaThis,
jstring  deviceName,
jboolean  granted 
)

Native interface function for device permission events.

Parameters
envNative interface environment, must be valid
javaThisJNI object, must be valid
deviceNameThe name of the device, must be valid
grantedTrue, if the permission was granted; False, if the permission was denied