theta-ble-client-react-native
Version:
This library provides a way to control RICOH THETA using
175 lines • 8.34 kB
JavaScript
import { NativeEventEmitter, NativeModules } from 'react-native';
const ThetaBleClientReactNative = NativeModules.ThetaBleClientReactNative;
export function addNotifyListener(callback) {
const eventEmitter = new NativeEventEmitter(NativeModules.ThetaBleClientReactNative);
return eventEmitter.addListener('ThetaBleNotify', callback);
}
export async function nativeScan(params) {
return ThetaBleClientReactNative.nativeScan(params);
}
export async function nativeScanThetaSsid(params) {
return ThetaBleClientReactNative.nativeScanThetaSsid(params);
}
export async function nativeConnect(id, uuid) {
return ThetaBleClientReactNative.nativeConnect(id, uuid);
}
export async function nativeIsConnected(id) {
return ThetaBleClientReactNative.nativeIsConnected(id);
}
export async function nativeDisconnect(id) {
return ThetaBleClientReactNative.nativeDisconnect(id);
}
export async function nativeContainService(id, service) {
return ThetaBleClientReactNative.nativeContainService(id, service);
}
export async function nativeGetFirmwareRevision(id) {
return ThetaBleClientReactNative.nativeGetFirmwareRevision(id);
}
export async function nativeGetManufacturerName(id) {
return ThetaBleClientReactNative.nativeGetManufacturerName(id);
}
export async function nativeGetModelNumber(id) {
return ThetaBleClientReactNative.nativeGetModelNumber(id);
}
export async function nativeGetSerialNumber(id) {
return ThetaBleClientReactNative.nativeGetSerialNumber(id);
}
export async function nativeGetWlanMacAddress(id) {
return ThetaBleClientReactNative.nativeGetWlanMacAddress(id);
}
export async function nativeGetBluetoothMacAddress(id) {
return ThetaBleClientReactNative.nativeGetBluetoothMacAddress(id);
}
export async function nativeGetBatteryLevel(id) {
return ThetaBleClientReactNative.nativeGetBatteryLevel(id);
}
export async function nativeSetBatteryLevelNotify(id, enable) {
return ThetaBleClientReactNative.nativeSetBatteryLevelNotify(id, enable);
}
export async function nativeGetBatteryStatus(id) {
return ThetaBleClientReactNative.nativeGetBatteryStatus(id);
}
export async function nativeSetBatteryStatusNotify(id, enable) {
return ThetaBleClientReactNative.nativeSetBatteryStatusNotify(id, enable);
}
export async function nativeGetCameraPower(id) {
return ThetaBleClientReactNative.nativeGetCameraPower(id);
}
export async function nativeSetCameraPower(id, value) {
return ThetaBleClientReactNative.nativeSetCameraPower(id, value);
}
export async function nativeSetCameraPowerNotify(id, enable) {
return ThetaBleClientReactNative.nativeSetCameraPowerNotify(id, enable);
}
export async function nativeSetCommandErrorDescriptionNotify(id, enable) {
return ThetaBleClientReactNative.nativeSetCommandErrorDescriptionNotify(id, enable);
}
export async function nativeGetPluginControl(id) {
return ThetaBleClientReactNative.nativeGetPluginControl(id);
}
export async function nativeSetPluginControl(id, value) {
return ThetaBleClientReactNative.nativeSetPluginControl(id, value);
}
export async function nativeSetPluginControlNotify(id, enable) {
return ThetaBleClientReactNative.nativeSetPluginControlNotify(id, enable);
}
export async function nativeGetPluginList(id) {
return ThetaBleClientReactNative.nativeGetPluginList(id);
}
export async function nativeGetPluginOrders(id) {
return ThetaBleClientReactNative.nativeGetPluginOrders(id);
}
export async function nativeSetPluginOrders(id, value) {
return ThetaBleClientReactNative.nativeSetPluginOrders(id, value);
}
export async function nativeGetCaptureMode(id) {
return ThetaBleClientReactNative.nativeGetCaptureMode(id);
}
export async function nativeSetCaptureMode(id, value) {
return ThetaBleClientReactNative.nativeSetCaptureMode(id, value);
}
export async function nativeGetFileFormat(id) {
return ThetaBleClientReactNative.nativeGetFileFormat(id);
}
export async function nativeSetFileFormat(id, value) {
return ThetaBleClientReactNative.nativeSetFileFormat(id, value);
}
export async function nativeGetMaxRecordableTime(id) {
return ThetaBleClientReactNative.nativeGetMaxRecordableTime(id);
}
export async function nativeSetMaxRecordableTime(id, value) {
return ThetaBleClientReactNative.nativeSetMaxRecordableTime(id, value);
}
export async function nativeTakePicture(id) {
return ThetaBleClientReactNative.nativeTakePicture(id);
}
export async function nativeCameraControlCommandV2GetInfo(id) {
return ThetaBleClientReactNative.nativeCameraControlCommandV2GetInfo(id);
}
export async function nativeCameraControlCommandV2GetState(id) {
return ThetaBleClientReactNative.nativeCameraControlCommandV2GetState(id);
}
export async function nativeCameraControlCommandV2SetStateNotify(id, enable) {
return ThetaBleClientReactNative.nativeCameraControlCommandV2SetStateNotify(id, enable);
}
export async function nativeCameraControlCommandV2GetState2(id) {
return ThetaBleClientReactNative.nativeCameraControlCommandV2GetState2(id);
}
export async function nativeCameraControlCommandV2GetOptions(id, optionNames) {
return ThetaBleClientReactNative.nativeCameraControlCommandV2GetOptions(id, optionNames);
}
export async function nativeCameraControlCommandV2GetOptionsByString(id, optionNames) {
return ThetaBleClientReactNative.nativeCameraControlCommandV2GetOptionsByString(id, optionNames);
}
export async function nativeCameraControlCommandV2SetOptions(id, options) {
return ThetaBleClientReactNative.nativeCameraControlCommandV2SetOptions(id, options);
}
export async function nativeCameraControlCommandV2ReleaseShutter(id) {
return ThetaBleClientReactNative.nativeCameraControlCommandV2ReleaseShutter(id);
}
export async function nativeBluetoothControlCommandScanPeripheralDevice(id, timeout) {
return ThetaBleClientReactNative.nativeBluetoothControlCommandScanPeripheralDevice(id, timeout);
}
export async function nativeBluetoothControlCommandScanPeripheralDeviceStart(id, timeout) {
return ThetaBleClientReactNative.nativeBluetoothControlCommandScanPeripheralDeviceStart(id, timeout);
}
export async function nativeBluetoothControlCommandScanPeripheralDeviceStop(id) {
return ThetaBleClientReactNative.nativeBluetoothControlCommandScanPeripheralDeviceStop(id);
}
export async function nativeBluetoothControlCommandConnectPeripheralDevice(id, macAddress) {
return ThetaBleClientReactNative.nativeBluetoothControlCommandConnectPeripheralDevice(id, macAddress);
}
export async function nativeBluetoothControlCommandDeletePeripheralDevice(id, macAddress) {
return ThetaBleClientReactNative.nativeBluetoothControlCommandDeletePeripheralDevice(id, macAddress);
}
export async function nativeWlanControlCommandV2SetNetworkType(id, networkType) {
return ThetaBleClientReactNative.nativeWlanControlCommandV2SetNetworkType(id, networkType);
}
export async function nativeWlanControlCommandV2SetNetworkTypeNotify(id, enable) {
return ThetaBleClientReactNative.nativeWlanControlCommandV2SetNetworkTypeNotify(id, enable);
}
export async function nativeWlanControlCommandV2GetConnectedWifiInfo(id) {
return ThetaBleClientReactNative.nativeWlanControlCommandV2GetConnectedWifiInfo(id);
}
export async function nativeWlanControlCommandV2SetConnectedWifiInfoNotify(id, enable) {
return ThetaBleClientReactNative.nativeWlanControlCommandV2SetConnectedWifiInfoNotify(id, enable);
}
export async function nativeWlanControlCommandV2ScanSsidStart(id, timeout) {
return ThetaBleClientReactNative.nativeWlanControlCommandV2ScanSsidStart(id, timeout);
}
export async function nativeWlanControlCommandV2ScanSsidStop(id) {
return ThetaBleClientReactNative.nativeWlanControlCommandV2ScanSsidStop(id);
}
export async function nativeWlanControlCommandV2SetAccessPointDynamically(id, params) {
return ThetaBleClientReactNative.nativeWlanControlCommandV2SetAccessPointDynamically(id, params);
}
export async function nativeWlanControlCommandV2SetAccessPointStatically(id, params) {
return ThetaBleClientReactNative.nativeWlanControlCommandV2SetAccessPointStatically(id, params);
}
export async function nativeWlanControlCommandV2GetWlanPasswordState(id) {
return ThetaBleClientReactNative.nativeWlanControlCommandV2GetWlanPasswordState(id);
}
export async function nativeReleaseDevice(id) {
return ThetaBleClientReactNative.nativeReleaseDevice(id);
}
//# sourceMappingURL=native-functions.js.map