내용으로 건너뛰기

시작하기

GitHub

Capgo의 AI 보조 설치를 사용하여 플러그인을 설치할 수 있습니다. AI 도구에 Capgo 기능을 추가하려면 다음 명령어를 사용하세요:

터미널 창
npx skills add https://github.com/Cap-go/capgo-skills --skill capacitor-plugins

다음 명령어를 사용하세요:

Use the `capacitor-plugins` skill from `Cap-go/capgo-skills` to install the `@capgo/capacitor-mute` plugin in my project.

만약 Manual Setup을 선호한다면, 플러그인을 설치하기 위해 다음 명령어를 실행하고 아래의 플랫폼별 지침을 따르세요:

터미널 창
bun add @capgo/capacitor-mute
bunx cap sync

Import

Import
import { Mute } from '@capgo/capacitor-mute';

API 개요

API 개요

isMuted

isMuted

장치 음소거 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');
}

타입 참조

타입 참조

MuteResponse

MuteResponse

음소거 상태 확인 결과

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

실질적인 출처

실질적인 출처

이 페이지는 플러그인의 src/definitions.ts 다시 싱크를 실행할 때 공개 API upstream에서 변경되면.

Getting Started에서 계속

Getting Started

계획 대시보드 및 __CAPGO_KEEP_0__ 운영을 위해 Using @__CAPGO_KEEP_0__/__CAPGO_KEEP_1__-mute Using @API/__CAPGO_KEEP_1__-mute Using @capgo/capacitor-mute for the native capability in Using @capgo/capacitor-mute, API 개요 API 구현 세부 정보 소개 __CAPGO_KEEP_0__ 구현 세부 정보 API 키 API 구현 세부 정보 및 장치 __CAPGO_KEEP_0__ 구현 세부 정보