UNPKG

theta-ble-client-react-native

Version:

This library provides a way to control RICOH THETA using

237 lines (236 loc) 12.2 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.addNotifyListener = addNotifyListener; exports.nativeBluetoothControlCommandConnectPeripheralDevice = nativeBluetoothControlCommandConnectPeripheralDevice; exports.nativeBluetoothControlCommandDeletePeripheralDevice = nativeBluetoothControlCommandDeletePeripheralDevice; exports.nativeBluetoothControlCommandScanPeripheralDevice = nativeBluetoothControlCommandScanPeripheralDevice; exports.nativeBluetoothControlCommandScanPeripheralDeviceStart = nativeBluetoothControlCommandScanPeripheralDeviceStart; exports.nativeBluetoothControlCommandScanPeripheralDeviceStop = nativeBluetoothControlCommandScanPeripheralDeviceStop; exports.nativeCameraControlCommandV2GetInfo = nativeCameraControlCommandV2GetInfo; exports.nativeCameraControlCommandV2GetOptions = nativeCameraControlCommandV2GetOptions; exports.nativeCameraControlCommandV2GetOptionsByString = nativeCameraControlCommandV2GetOptionsByString; exports.nativeCameraControlCommandV2GetState = nativeCameraControlCommandV2GetState; exports.nativeCameraControlCommandV2GetState2 = nativeCameraControlCommandV2GetState2; exports.nativeCameraControlCommandV2ReleaseShutter = nativeCameraControlCommandV2ReleaseShutter; exports.nativeCameraControlCommandV2SetOptions = nativeCameraControlCommandV2SetOptions; exports.nativeCameraControlCommandV2SetStateNotify = nativeCameraControlCommandV2SetStateNotify; exports.nativeConnect = nativeConnect; exports.nativeContainService = nativeContainService; exports.nativeDisconnect = nativeDisconnect; exports.nativeGetBatteryLevel = nativeGetBatteryLevel; exports.nativeGetBatteryStatus = nativeGetBatteryStatus; exports.nativeGetBluetoothMacAddress = nativeGetBluetoothMacAddress; exports.nativeGetCameraPower = nativeGetCameraPower; exports.nativeGetCaptureMode = nativeGetCaptureMode; exports.nativeGetFileFormat = nativeGetFileFormat; exports.nativeGetFirmwareRevision = nativeGetFirmwareRevision; exports.nativeGetManufacturerName = nativeGetManufacturerName; exports.nativeGetMaxRecordableTime = nativeGetMaxRecordableTime; exports.nativeGetModelNumber = nativeGetModelNumber; exports.nativeGetPluginControl = nativeGetPluginControl; exports.nativeGetPluginList = nativeGetPluginList; exports.nativeGetPluginOrders = nativeGetPluginOrders; exports.nativeGetSerialNumber = nativeGetSerialNumber; exports.nativeGetWlanMacAddress = nativeGetWlanMacAddress; exports.nativeIsConnected = nativeIsConnected; exports.nativeReleaseDevice = nativeReleaseDevice; exports.nativeScan = nativeScan; exports.nativeScanThetaSsid = nativeScanThetaSsid; exports.nativeSetBatteryLevelNotify = nativeSetBatteryLevelNotify; exports.nativeSetBatteryStatusNotify = nativeSetBatteryStatusNotify; exports.nativeSetCameraPower = nativeSetCameraPower; exports.nativeSetCameraPowerNotify = nativeSetCameraPowerNotify; exports.nativeSetCaptureMode = nativeSetCaptureMode; exports.nativeSetCommandErrorDescriptionNotify = nativeSetCommandErrorDescriptionNotify; exports.nativeSetFileFormat = nativeSetFileFormat; exports.nativeSetMaxRecordableTime = nativeSetMaxRecordableTime; exports.nativeSetPluginControl = nativeSetPluginControl; exports.nativeSetPluginControlNotify = nativeSetPluginControlNotify; exports.nativeSetPluginOrders = nativeSetPluginOrders; exports.nativeTakePicture = nativeTakePicture; exports.nativeWlanControlCommandGetWlanPasswordState = nativeWlanControlCommandGetWlanPasswordState; exports.nativeWlanControlCommandV2GetConnectedWifiInfo = nativeWlanControlCommandV2GetConnectedWifiInfo; exports.nativeWlanControlCommandV2ScanSsidStart = nativeWlanControlCommandV2ScanSsidStart; exports.nativeWlanControlCommandV2ScanSsidStop = nativeWlanControlCommandV2ScanSsidStop; exports.nativeWlanControlCommandV2SetAccessPointDynamically = nativeWlanControlCommandV2SetAccessPointDynamically; exports.nativeWlanControlCommandV2SetAccessPointStatically = nativeWlanControlCommandV2SetAccessPointStatically; exports.nativeWlanControlCommandV2SetConnectedWifiInfoNotify = nativeWlanControlCommandV2SetConnectedWifiInfoNotify; exports.nativeWlanControlCommandV2SetNetworkType = nativeWlanControlCommandV2SetNetworkType; exports.nativeWlanControlCommandV2SetNetworkTypeNotify = nativeWlanControlCommandV2SetNetworkTypeNotify; var _reactNative = require("react-native"); const ThetaBleClientReactNative = _reactNative.NativeModules.ThetaBleClientReactNative; function addNotifyListener(callback) { const eventEmitter = new _reactNative.NativeEventEmitter(_reactNative.NativeModules.ThetaBleClientReactNative); return eventEmitter.addListener('ThetaBleNotify', callback); } async function nativeScan(params) { return ThetaBleClientReactNative.nativeScan(params); } async function nativeScanThetaSsid(params) { return ThetaBleClientReactNative.nativeScanThetaSsid(params); } async function nativeConnect(id, uuid) { return ThetaBleClientReactNative.nativeConnect(id, uuid); } async function nativeIsConnected(id) { return ThetaBleClientReactNative.nativeIsConnected(id); } async function nativeDisconnect(id) { return ThetaBleClientReactNative.nativeDisconnect(id); } async function nativeContainService(id, service) { return ThetaBleClientReactNative.nativeContainService(id, service); } async function nativeGetFirmwareRevision(id) { return ThetaBleClientReactNative.nativeGetFirmwareRevision(id); } async function nativeGetManufacturerName(id) { return ThetaBleClientReactNative.nativeGetManufacturerName(id); } async function nativeGetModelNumber(id) { return ThetaBleClientReactNative.nativeGetModelNumber(id); } async function nativeGetSerialNumber(id) { return ThetaBleClientReactNative.nativeGetSerialNumber(id); } async function nativeGetWlanMacAddress(id) { return ThetaBleClientReactNative.nativeGetWlanMacAddress(id); } async function nativeGetBluetoothMacAddress(id) { return ThetaBleClientReactNative.nativeGetBluetoothMacAddress(id); } async function nativeGetBatteryLevel(id) { return ThetaBleClientReactNative.nativeGetBatteryLevel(id); } async function nativeSetBatteryLevelNotify(id, enable) { return ThetaBleClientReactNative.nativeSetBatteryLevelNotify(id, enable); } async function nativeGetBatteryStatus(id) { return ThetaBleClientReactNative.nativeGetBatteryStatus(id); } async function nativeSetBatteryStatusNotify(id, enable) { return ThetaBleClientReactNative.nativeSetBatteryStatusNotify(id, enable); } async function nativeGetCameraPower(id) { return ThetaBleClientReactNative.nativeGetCameraPower(id); } async function nativeSetCameraPower(id, value) { return ThetaBleClientReactNative.nativeSetCameraPower(id, value); } async function nativeSetCameraPowerNotify(id, enable) { return ThetaBleClientReactNative.nativeSetCameraPowerNotify(id, enable); } async function nativeSetCommandErrorDescriptionNotify(id, enable) { return ThetaBleClientReactNative.nativeSetCommandErrorDescriptionNotify(id, enable); } async function nativeGetPluginControl(id) { return ThetaBleClientReactNative.nativeGetPluginControl(id); } async function nativeSetPluginControl(id, value) { return ThetaBleClientReactNative.nativeSetPluginControl(id, value); } async function nativeSetPluginControlNotify(id, enable) { return ThetaBleClientReactNative.nativeSetPluginControlNotify(id, enable); } async function nativeGetPluginList(id) { return ThetaBleClientReactNative.nativeGetPluginList(id); } async function nativeGetPluginOrders(id) { return ThetaBleClientReactNative.nativeGetPluginOrders(id); } async function nativeSetPluginOrders(id, value) { return ThetaBleClientReactNative.nativeSetPluginOrders(id, value); } async function nativeGetCaptureMode(id) { return ThetaBleClientReactNative.nativeGetCaptureMode(id); } async function nativeSetCaptureMode(id, value) { return ThetaBleClientReactNative.nativeSetCaptureMode(id, value); } async function nativeGetFileFormat(id) { return ThetaBleClientReactNative.nativeGetFileFormat(id); } async function nativeSetFileFormat(id, value) { return ThetaBleClientReactNative.nativeSetFileFormat(id, value); } async function nativeGetMaxRecordableTime(id) { return ThetaBleClientReactNative.nativeGetMaxRecordableTime(id); } async function nativeSetMaxRecordableTime(id, value) { return ThetaBleClientReactNative.nativeSetMaxRecordableTime(id, value); } async function nativeTakePicture(id) { return ThetaBleClientReactNative.nativeTakePicture(id); } async function nativeCameraControlCommandV2GetInfo(id) { return ThetaBleClientReactNative.nativeCameraControlCommandV2GetInfo(id); } async function nativeCameraControlCommandV2GetState(id) { return ThetaBleClientReactNative.nativeCameraControlCommandV2GetState(id); } async function nativeCameraControlCommandV2SetStateNotify(id, enable) { return ThetaBleClientReactNative.nativeCameraControlCommandV2SetStateNotify(id, enable); } async function nativeCameraControlCommandV2GetState2(id) { return ThetaBleClientReactNative.nativeCameraControlCommandV2GetState2(id); } async function nativeCameraControlCommandV2GetOptions(id, optionNames) { return ThetaBleClientReactNative.nativeCameraControlCommandV2GetOptions(id, optionNames); } async function nativeCameraControlCommandV2GetOptionsByString(id, optionNames) { return ThetaBleClientReactNative.nativeCameraControlCommandV2GetOptionsByString(id, optionNames); } async function nativeCameraControlCommandV2SetOptions(id, options) { return ThetaBleClientReactNative.nativeCameraControlCommandV2SetOptions(id, options); } async function nativeCameraControlCommandV2ReleaseShutter(id) { return ThetaBleClientReactNative.nativeCameraControlCommandV2ReleaseShutter(id); } async function nativeBluetoothControlCommandScanPeripheralDevice(id, timeout) { return ThetaBleClientReactNative.nativeBluetoothControlCommandScanPeripheralDevice(id, timeout); } async function nativeBluetoothControlCommandScanPeripheralDeviceStart(id, timeout) { return ThetaBleClientReactNative.nativeBluetoothControlCommandScanPeripheralDeviceStart(id, timeout); } async function nativeBluetoothControlCommandScanPeripheralDeviceStop(id) { return ThetaBleClientReactNative.nativeBluetoothControlCommandScanPeripheralDeviceStop(id); } async function nativeBluetoothControlCommandConnectPeripheralDevice(id, macAddress) { return ThetaBleClientReactNative.nativeBluetoothControlCommandConnectPeripheralDevice(id, macAddress); } async function nativeBluetoothControlCommandDeletePeripheralDevice(id, macAddress) { return ThetaBleClientReactNative.nativeBluetoothControlCommandDeletePeripheralDevice(id, macAddress); } async function nativeWlanControlCommandGetWlanPasswordState(id) { return ThetaBleClientReactNative.nativeWlanControlCommandGetWlanPasswordState(id); } async function nativeWlanControlCommandV2SetNetworkType(id, networkType) { return ThetaBleClientReactNative.nativeWlanControlCommandV2SetNetworkType(id, networkType); } async function nativeWlanControlCommandV2SetNetworkTypeNotify(id, enable) { return ThetaBleClientReactNative.nativeWlanControlCommandV2SetNetworkTypeNotify(id, enable); } async function nativeWlanControlCommandV2GetConnectedWifiInfo(id) { return ThetaBleClientReactNative.nativeWlanControlCommandV2GetConnectedWifiInfo(id); } async function nativeWlanControlCommandV2SetConnectedWifiInfoNotify(id, enable) { return ThetaBleClientReactNative.nativeWlanControlCommandV2SetConnectedWifiInfoNotify(id, enable); } async function nativeWlanControlCommandV2ScanSsidStart(id, timeout) { return ThetaBleClientReactNative.nativeWlanControlCommandV2ScanSsidStart(id, timeout); } async function nativeWlanControlCommandV2ScanSsidStop(id) { return ThetaBleClientReactNative.nativeWlanControlCommandV2ScanSsidStop(id); } async function nativeWlanControlCommandV2SetAccessPointDynamically(id, params) { return ThetaBleClientReactNative.nativeWlanControlCommandV2SetAccessPointDynamically(id, params); } async function nativeWlanControlCommandV2SetAccessPointStatically(id, params) { return ThetaBleClientReactNative.nativeWlanControlCommandV2SetAccessPointStatically(id, params); } async function nativeReleaseDevice(id) { return ThetaBleClientReactNative.nativeReleaseDevice(id); } //# sourceMappingURL=native-functions.js.map