@capgo/capacitor-pretty-toast __CAPGO_KEEP_0__은 __CAPGO_KEEP_1__ 앱에서 네이티브 첫 번째 토스트 알림을 제공합니다. iOS와 Android에서 네이티브 오버레이를 렌더링하고 Web에서 DOM 렌더러를 렌더링합니다. toast.* API for native-first toast notifications in Capacitor apps. It renders native overlays on iOS and Android and a DOM renderer on Web.
데모

핵심 기능
핵심 기능toast.show- 전체 구성 객체에서 커스텀 토스트를 보여줍니다.toast.success,toast.error,toast.info,toast.warning- 제목과 선택적 구성으로 일반적인 의미를 가진 토스트를 보여줍니다.toast.loading- 지속적인 로딩 토스트를 보여줍니다.toast.update- 기존 토스트를 업데이트합니다.toast.promise- 로딩, 성공, 오류 상태를 추적하는 프라미스를 트랙합니다.toast.dismissandtoast.dismissAll- 하나의 토스트를 제거하거나 큐를 비웁니다.
API
API 공개 섹션| 메소드 | 설명 |
|---|---|
toast.show(config, options?) | 자동으로 닫히지 않는 풀 토스트를 보여줍니다. ToastConfig. |
toast.success(title, config?, options?) | 성공 토스트를 보여줍니다. |
toast.error(title, config?, options?) | 오류 토스트를 보여줍니다. |
toast.info(title, config?, options?) | 정보 토스트를 보여줍니다. |
toast.warning(title, config?, options?) | 경고 토스트를 보여줍니다. |
toast.loading(title, config?, options?) | 자동으로 닫히지 않는 로딩 토스트를 보여줍니다. |
toast.update(id, partial) | 기존 토스트를 업데이트합니다. |
toast.promise(promise, messages) | 로딩 상태를 보여주고, 성공 또는 오류로 업데이트합니다. |
toast.dismiss(id?) | 활성 토스트를 닫습니다. |
toast.dismissAll() | 모든 표시되고 대기 중인 토스트를 닫습니다. |
진실의 근원
‘진실의 근원’이라는 섹션이 참조는 src/definitions.ts 에서同步됩니다. capacitor-pretty-toast.
capgo/capacitor-pretty-toast에서 계속 진행하세요.
‘capgo/capacitor-pretty-toast에서 계속 진행하세요.’라는 섹션__CAPGO_KEEP_0__/__CAPGO_KEEP_1__-pretty-toast를 사용하여 @capgo/capacitor-pretty-toast __CAPGO_KEEP_0__ Plugin Directory와 연결하세요. Capgo/__CAPGO_KEEP_1__ Capgo 제품 워크플로우에서 플러그인 디렉토리에서 Capacitor 플러그인은 Capgo에 의해 Capacitor 플러그인에 대한 구현 세부 사항은 Capgo에 의해 플러그인 추가 또는 업데이트 __CAPGO_KEEP_0__ 플러그인에 대한 구현 세부 사항은 플러그인 추가 또는 업데이트 아이오닉 엔터프라이즈 플러그인 대체 __CAPGO_KEEP_0__ 제품 워크플로우에서 아이오닉 엔터프라이즈 플러그인 대체 Capgo 네이티브 빌드 Capgo 제품 워크플로우에서 네이티브 빌드