IPC PTZ

Last Updated on : 2021-08-27 11:07:18download

This topic describes the properties and example of the IP camera (IPC) pan-tilt-zoom (PTZ) rotation component TYIpcPtz.

Preview

IPC PTZ

Properties

Field Description Required Type Default value
themeType The theme color. No string light
activeColor The color of the active directional pad. No string undefined
containerStyle The container style. No ViewStyle {}
dotStyle The dot style. No ImageStyle {}
disabled Specifies whether to disable the component. No boolean false
pieWidth The width of the PTZ rotation component. No number 200
pieHeight The height of the PTZ rotation component. No number 200
hasPtzUp Specified whether the upward point is used. No boolean true
hasPtzDown Specified whether the downward point is used. No boolean true
hasPtzLeft Specified whether the leftward point is used. No boolean true
hasPtzRight Specified whether the rightward point is used. No boolean true
pressIn The function of the touch action. No Function () => {}
pressOut The function of the touch and release action. No Function () => {}

Example

import { TYIpcPtz } from '@tuya/tuya-panel-ipc-sdk';

const NormalTopRight = () => {
    return <TYIpcPtz
                themeType ='light'
                containerStyle={{position: 'absolute', top: 50 }}
              />
  }

return (
  <View>
      <NormalTopRight/>
    </View>
)