개요
개요 섹션@capgo/capacitor-pretty-toast __CAPGO_KEEP_0__을 제공하여 __CAPGO_KEEP_1__ 앱에서 원시적인 토스트 알림을 __CAPGO_KEEP_2__합니다. 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.
__CAPGO_KEEP_2__는 생략된 단어입니다.
데모
데모 섹션
기본 기능
기본 기능 섹션toast.show- 전체 구성 객체에서 커스텀 토스트를 보여줍니다.toast.success,toast.error,toast.info,toast.warning- 제목과 선택적 구성으로 일반적인 의미를 가진 토스트를 보여줍니다.toast.loading- 지속적인 로딩 토스트를 보여줍니다.toast.update- 존재하는 토스트를 업데이트 합니다.toast.promise- 로딩, 성공, 오류 상태를 추적하여 프라미스를 관리합니다.toast.dismiss그리고toast.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.
Keep going from @capgo/capacitor-pretty-toast
capgo에서 계속하기 @capacitor-pretty-toast‘__CAPGO_KEEP_0__에서 계속하기 @__CAPGO_KEEP_1__-pretty-toast’라는 제목의 섹션 capgo/capacitor-pretty-toast를 사용하고 있다면 native 플러그인 작업을 계획하기 위해, 그것을 연결하세요. Capgo 플러그인 디렉토리 Capgo 플러그인 디렉토리에서 제품 워크플로우 Capacitor 플러그인들에 의해 Capgo Capacitor 플러그인들에 의해 Capgo의 구현 세부 사항 플러그인을 추가하거나 업데이트 플러그인을 추가하거나 업데이트 하는 구현 세부 사항 Ionic Enterprise 플러그인 대체 Ionic Enterprise 플러그인 대체의 제품 워크플로우, 그리고 Capgo 네이티브 빌드 Capgo 네이티브 빌드의 제품 워크플로우