내용으로 바로가기

시작하기

GitHub

플러그인을 설치하기 위해 AI-Assisted Setup을 사용할 수 있습니다. 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-pretty-toast` plugin in my project.

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

터미널 창
npm install @capgo/capacitor-pretty-toast
npx cap sync
import { toast } from '@capgo/capacitor-pretty-toast';

토스트 표시

토스트 표시 섹션
toast.success('Saved', {
message: 'Your changes are ready.',
});

업데이트 로딩 토스트

업데이트 로딩 토스트
const id = toast.loading('Uploading', {
message: 'Waiting for the server response.',
});
setTimeout(() => {
toast.update(id, {
title: 'Upload complete',
message: 'The file was stored successfully.',
icon: 'checkmark.circle.fill',
autoDismiss: true,
});
}, 1500);

프로미스 추적

프로미스 추적
await toast.promise(uploadFile(), {
loading: {
title: 'Uploading',
message: 'Keep the app open while the file is sent.',
},
success: 'Uploaded',
error: 'Upload failed',
});

아이콘 및 이미지

아이콘 및 이미지

위 icon symbol 이름 또는 raw SVG 마크업:

toast.info('New message', {
icon: 'message.fill',
message: 'Open the inbox to reply.',
});

위 iconSource URI와 같은 이미지에 대해. 그것은 https://, http://, file://, data:, blob:, 절대 파일 경로, 또는 { uri }.

toast.show({
title: 'Profile updated',
message: 'Your avatar changed.',
iconSource: 'https://example.com/avatar.png',
});

iconSource 이것이 우선순위입니다. icon.

Getting Started에서 계속하기

Getting Started에서 계속하기라는 제목

Capgo를 사용 중이라면 시작하기 Capgo 플러그인 작업을 계획하고자 할 때, 그것을 __CAPGO_KEEP_0__ 플러그인 디렉토리와 연결하세요. Capgo 플러그인 디렉토리에서 제품 워크플로우를 위해 Capgo 플러그인 Capacitor Plugins by Capgo Capacitor 플러그인 구현 세부 사항을 위해 Capgo에 의해 제공됩니다. 플러그인 추가 또는 업데이트 __CAPGO_KEEP_0__ 플러그인 추가 또는 업데이트 구현 세부 사항에 대해 아이오닉 엔터프라이즈 플러그인 대체 아이오닉 엔터프라이즈 플러그인 대체 제품 워크플로에 대해, Capgo 네이티브 빌드 Capgo 네이티브 빌드 제품 워크플로에 대해