diff --git a/api/@ohos.multimedia.avCastPicker.d.ets b/api/@ohos.multimedia.avCastPicker.d.ets index 07eafbd26a53b3ebcefbd0b004e2669057607dbb..fb493e900c22e4530fe11348a1693a4033cbeab7 100644 --- a/api/@ohos.multimedia.avCastPicker.d.ets +++ b/api/@ohos.multimedia.avCastPicker.d.ets @@ -22,6 +22,14 @@ import { AVCastPickerState } from './@ohos.multimedia.avCastPickerParam'; import { AVCastPickerStyle } from './@ohos.multimedia.avCastPickerParam'; import { AVCastPickerColorMode } from './@ohos.multimedia.avCastPickerParam'; +/*** if arkts 1.2 */ +import { PropRef } from './arkui/stateManagement/decorator'; +import { Component } from './arkui/component/customComponent'; +import { Color} from './arkui/component/enums'; +import { CustomBuilder } from './arkui/component/builder'; +import { BuilderParam, Builder } from './arkui/component/builder'; +/*** endif */ + /** * A picker view to show availale streaming device list. * @syscap SystemCapability.Multimedia.AVSession.AVCast @@ -31,10 +39,11 @@ import { AVCastPickerColorMode } from './@ohos.multimedia.avCastPickerParam'; * A picker view to show availale streaming device list. * @syscap SystemCapability.Multimedia.AVSession.AVCast * @atomicservice - * @since 12 + * @since arkts{ '1.1':'12','1.2':'20' } + * @arkts 1.1&1.2 */ @Component -declare struct AVCastPicker { +export declare struct AVCastPicker { /** * Assigns the color of picker component at normal state . * @type { ? Color | number | string } @@ -49,10 +58,23 @@ declare struct AVCastPicker { * @crossplatform * @atomicservice * @since 12 + * @arkts 1.1 */ @Prop normalColor?: Color | number | string; + /** + * Assigns the color of picker component at normal state . + * @type { ? Color | number | string } + * @syscap SystemCapability.Multimedia.AVSession.AVCast + * @crossplatform + * @atomicservice + * @since 20 + * @arkts 1.2 + */ + @PropRef + normalColor?: Color | number | string; + /** * Assigns the color of picker component at active state. * @type { ? Color | number | string } @@ -67,30 +89,67 @@ declare struct AVCastPicker { * @crossplatform * @atomicservice * @since 12 + * @arkts 1.1 */ @Prop activeColor?: Color | number | string; + /** + * Assigns the color of picker component at active state. + * @type { ? Color | number | string } + * @syscap SystemCapability.Multimedia.AVSession.AVCast + * @crossplatform + * @atomicservice + * @since 20 + * @arkts 1.2 + */ + @PropRef + activeColor?: Color | number | string; + /** * Set the picker style. * @type { ? AVCastPickerStyle } * @syscap SystemCapability.Multimedia.AVSession.AVCast * @atomicservice * @since 12 + * @arkts 1.1 */ @Prop pickerStyle?: AVCastPickerStyle; + /** + * Set the picker style. + * @type { ? AVCastPickerStyle } + * @syscap SystemCapability.Multimedia.AVSession.AVCast + * @atomicservice + * @since 20 + * @arkts 1.2 + */ + @PropRef + pickerStyle?: AVCastPickerStyle; + /** * Set the picker color mode. * @type { ? AVCastPickerColorMode } * @syscap SystemCapability.Multimedia.AVSession.AVCast * @atomicservice * @since 12 + * @arkts 1.1 */ @Prop colorMode?: AVCastPickerColorMode; + /** + * Set the picker color mode. + * @type { ? AVCastPickerColorMode } + * @syscap SystemCapability.Multimedia.AVSession.AVCast + * @atomicservice + * @since 20 + * @arkts 1.2 + */ + @PropRef + colorMode?: AVCastPickerColorMode; + /** * Set the session type used by current picker component which can refer to AVSessionType in avSession. * If not set, default value is 'audio'. @@ -98,10 +157,23 @@ declare struct AVCastPicker { * @syscap SystemCapability.Multimedia.AVSession.AVCast * @atomicservice * @since 12 + * @arkts 1.1 */ @Prop sessionType?: string; + /** + * Set the session type used by current picker component which can refer to AVSessionType in avSession. + * If not set, default value is 'audio'. + * @type { ? string } + * @syscap SystemCapability.Multimedia.AVSession.AVCast + * @atomicservice + * @since 20 + * @arkts 1.2 + */ + @PropRef + sessionType?: string; + /** * Set the custom builder for the picker appearance. * If not set, system will show the default appearance for different device type. @@ -109,10 +181,23 @@ declare struct AVCastPicker { * @syscap SystemCapability.Multimedia.AVSession.AVCast * @atomicservice * @since 12 + * @arkts 1.1 */ @Prop customPicker?: CustomBuilder; + /** + * Set the custom builder for the picker appearance. + * If not set, system will show the default appearance for different device type. + * @type { ? CustomBuilder } + * @syscap SystemCapability.Multimedia.AVSession.AVCast + * @atomicservice + * @since 20 + * @arkts 1.2 + */ + @PropRef + customPicker?: CustomBuilder; + /** * Picker state change callback. * @type { ?function } @@ -126,8 +211,18 @@ declare struct AVCastPicker { * @syscap SystemCapability.Multimedia.AVSession.AVCast * @crossplatform * @atomicservice - * @since 12 + * @since arkts{ '1.1':'12','1.2':'20' } + * @arkts 1.1&1.2 */ onStateChange?: (state: AVCastPickerState) => void; -} -export default AVCastPicker; \ No newline at end of file + + /** + * The method to build component. + * @syscap SystemCapability.Multimedia.AVSession.AVCast + * @atomicservice + * @since 20 + * @arkts 1.2 + */ + @Builder + build(): void; +} \ No newline at end of file