내용으로 건너뛰기

Getting Started

GitHub
터미널 창
bun add @capgo/capacitor-mute
bunx cap sync
import { Mute } from '@capgo/capacitor-mute';

장치 음소거 switch가 활성화되어 있는지 확인합니다.

import { Mute } from '@capgo/capacitor-mute';
const { value } = await Mute.isMuted();
if (value) {
console.log('Device is muted');
} else {
console.log('Device is not muted');
}

Type Reference

Type Reference 섹션

음소거 상태 확인에서 응답합니다.

export interface MuteResponse {
/** True if device is muted, false otherwise */
value: boolean;
}

진실의 근원

진실의 근원 섹션

이 페이지는 플러그인의 src/definitions.tsAPI이 업스트림에서 변경될 때마다 다시 싱크를 실행하세요.

Getting Started에서 계속하기

Getting Started에서 계속하기 섹션

If you are using Getting Started to plan dashboard and API operations, connect it with Using @capgo/capacitor-mute for the native capability in Using @capgo/capacitor-mute, API Overview for the implementation detail in API Overview, Introduction for the implementation detail in Introduction, API Keys for the implementation detail in API Keys, and __CAPGO_KEEP_0__ Devices __CAPGO_KEEP_0__의 구현 세부 사항입니다.