__CAPGO_KEEP_0__ - __CAPGO_KEEP_1__ 앱의 실시간 업데이트

시작하기

터미널 창
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');
}

타입 참조

타입 참조

음소거 상태 확인 결과

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

진실의 근원

진실의 근원

이 페이지는 플러그인의 __CAPGO_KEEP_0__이 업스트림에서 변경될 때마다 다시 동기화합니다. src/definitions.ts. Re-run the sync when the public API changes upstream.