/*
* Copyright (C) 2023 Huawei Device Co., Ltd.
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/**
* @file
* @kit AVSessionKit
*/
import { AVCastPickerState } from './@ohos.multimedia.avCastPickerParam';
import { AVCastPickerStyle } from './@ohos.multimedia.avCastPickerParam';
import { AVCastPickerColorMode } from './@ohos.multimedia.avCastPickerParam';
/**
* A picker view to show available streaming device list.
*
* @syscap SystemCapability.Multimedia.AVSession.AVCast
* @atomicservice [since 12]
* @since 10 dynamic
*/
@Component
declare struct AVCastPicker {
/**
* Assigns the color of picker component at normal state .
*
* @syscap SystemCapability.Multimedia.AVSession.AVCast
* @crossplatform
* @atomicservice [since 12]
* @since 11 dynamic
*/
@Prop
normalColor?: Color | number | string;
/**
* Assigns the color of picker component at active state.
*
* @syscap SystemCapability.Multimedia.AVSession.AVCast
* @crossplatform
* @atomicservice [since 12]
* @since 11 dynamic
*/
@Prop
activeColor?: Color | number | string;
/**
* Set the picker style.
*
* @syscap SystemCapability.Multimedia.AVSession.AVCast
* @atomicservice
* @since 12 dynamic
*/
@Prop
pickerStyle?: AVCastPickerStyle;
/**
* Set the picker color mode.
*
* @syscap SystemCapability.Multimedia.AVSession.AVCast
* @atomicservice
* @since 12 dynamic
*/
@Prop
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'.
*
* @syscap SystemCapability.Multimedia.AVSession.AVCast
* @atomicservice
* @since 12 dynamic
*/
@Prop
sessionType?: string;
/**
* Set the custom builder for the picker appearance.
* If not set, system will show the default appearance for different device type.
*
* @syscap SystemCapability.Multimedia.AVSession.AVCast
* @atomicservice
* @since 12 dynamic
*/
@Prop
customPicker?: CustomBuilder;
/**
* Picker state change callback.
*
* @syscap SystemCapability.Multimedia.AVSession.AVCast
* @crossplatform
* @atomicservice [since 12]
* @since 11 dynamic
*/
onStateChange?: (state: AVCastPickerState) => void;
}
export default AVCastPicker;