UNPKG

theta-client-react-native

Version:

This library provides a way to control RICOH THETA using.

35 lines (33 loc) 940 B
/** Length of standby time before the camera automatically powers OFF. */ export const OffDelayEnum = { /** Do not turn power off. */ DISABLE: 'DISABLE', /** Power off after 5 minutes.(300sec) */ OFF_DELAY_5M: 'OFF_DELAY_5M', /** Power off after 10 minutes.(600sec) */ OFF_DELAY_10M: 'OFF_DELAY_10M', /** Power off after 15 minutes.(900sec) */ OFF_DELAY_15M: 'OFF_DELAY_15M', /** Power off after 30 minutes.(1,800sec) */ OFF_DELAY_30M: 'OFF_DELAY_30M' }; /** type definition of OffDelayEnum */ /** * Get time(seconds) from OffDelayEnum * @param offDelay enum of OffDelay * @returns time(seconds) */ export function offDelayToSeconds(offDelay) { if (typeof offDelay === 'number') { return offDelay; } const table = { DISABLE: 0, OFF_DELAY_5M: 300, OFF_DELAY_10M: 600, OFF_DELAY_15M: 900, OFF_DELAY_30M: 1800 }; return table[offDelay]; } //# sourceMappingURL=option-off-delay.js.map