harmony 鸿蒙@ohos.multimedia.avCastPickerParam (AVCastPicker Parameters)

  • 2025-06-12
  • 浏览 (5)

@ohos.multimedia.avCastPickerParam (AVCastPicker Parameters)

avCastPickerParam defines the enumerated values of the @ohos.multimedia.avCastPicker states.

NOTE

The initial APIs of this module are supported since API version 11. Newly added APIs will be marked with a superscript to indicate their earliest API version.

AVCastPickerState11+

Enumerates the states of the AVCastPicker component.

Atomic service API: This API can be used in atomic services since API version 12.

System capability: SystemCapability.Multimedia.AVSession.AVCast

Name Value Description
STATE_APPEARING 0 The component is displayed.
STATE_DISAPPEARING 1 The component disappears.

AVCastPickerStyle12+

Enumerates the styles of the AVCastPicker component.

Atomic service API: This API can be used in atomic services since API version 12.

System capability: SystemCapability.Multimedia.AVSession.AVCast

Name Value Description
STYLE_PANEL 0 Panel style.
STYLE_MENU 1 Menu style.

AVCastPickerColorMode12+

Enumerates the color modes of the AVCastPicker component.

Atomic service API: This API can be used in atomic services since API version 12.

System capability: SystemCapability.Multimedia.AVSession.AVCast

Name Value Description
AUTO 0 Follows the system mode.
DARK 1 Dark mode.
LIGHT 2 Light mode.

你可能感兴趣的鸿蒙文章

harmony 鸿蒙AVSession Kit

harmony 鸿蒙AVSession_PlaybackPosition

harmony 鸿蒙OHAVSession

harmony 鸿蒙AVSession Management Error Codes

harmony 鸿蒙@ohos.app.ability.MediaControlExtensionAbility (ExtensionAbility for Media Playback Control) (System API)

harmony 鸿蒙@ohos.multimedia.avsession (AVSession Management) (System API)

harmony 鸿蒙js-apis-avsession

harmony 鸿蒙MediaControlExtensionContext (ExtensionAbility Context for Media Playback Control) (System API)

harmony 鸿蒙native_avmetadata.h

harmony 鸿蒙native_avsession.h

0  赞