'use static'
/*
* Copyright (C) 2025 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.
*/
import { Position } from './arkui/component/units';
import { PropRef } from './arkui/stateManagement/decorator';
import { Component } from './arkui/component/customComponent';
import { Builder } from './arkui/component/builder';
/**
* @file Defines a panel to set the system audio output volume.
* @kit AudioKit
*/
/**
* Declare custom parameters used for volume panel.
*
* @syscap SystemCapability.Multimedia.Audio.Volume
* @since 23 static
*/
export declare class AVVolumePanelParameter {
/**
* Sets the position of volume panel.
*
* @type { ?Position }
* @syscap SystemCapability.Multimedia.Audio.Volume
* @since 23 static
*/
position?: Position;
}
/**
* A panel to set the system audio output volume.
*
* @struct { AVVolumePanel }
* @syscap SystemCapability.Multimedia.Audio.Volume
* @since 23 static
*/
@Component
export declare struct AVVolumePanel {
/**
* Sets the device volume through the volume panel.
* The value should be between mininum and maxinum current device volume, otherwise it will be discarded.
*
* @type { ?int }
* @syscap SystemCapability.Multimedia.Audio.Volume
* @since 23 static
*/
@PropRef
volumeLevel?: int;
/**
* Sets the custom parameters of volume panel.
*
* @type { ?AVVolumePanelParameter }
* @syscap SystemCapability.Multimedia.Audio.Volume
* @since 23 static
*/
@PropRef
volumeParameter?: AVVolumePanelParameter;
/**
* The method to build component.
* @syscap SystemCapability.Multimedia.Audio.Volume
* @since 23 staticonly
*/
@Builder
build(): void;
}