메뉴로 이동

@capgo/capacitor-pretty-toast

iOS, Android, 및 Web에서 큐잉, 업데이트, 액션, 아이콘, 및 프로미스 상태를 지원하는 네이티브가 보이는 토스트 알림을 보여줍니다.

@capgo/capacitor-pretty-toast 성공 메시지, 오류, 로딩 상태, 오래된 프로미스 feedback, 및 액션 토스트를 위한 사용합니다. 플랫폼과 통합된 느낌을 주는 알림을 표시합니다. toast.* API for native-first toast notifications in Capacitor apps. It renders native overlays on iOS and Android and a DOM renderer on Web.

It provides a __CAPGO_KEEP_0__ for native-first toast notifications in __CAPGO_KEEP_1__ apps.

Use it for success messages, errors, loading states, long-running promise feedback, and action toasts that should feel integrated with the platform.

데모 섹션
외부 장치에서 애니메이션 Pretty Toast 데모
토스트通知 흐름
  • toast.show - 전체 구성 객체에서 커스텀 토스트를 보여줍니다.
  • toast.success, toast.error, toast.info, toast.warning - 제목과 선택적 구성으로 일반적인 의미를 가진 토스트를 보여줍니다.
  • toast.loading - 지속적인 로딩 토스트를 보여줍니다.
  • toast.update - 기존 토스트를 업데이트합니다.
  • toast.promise - 로딩, 성공, 오류 상태를 추적하여 프라미스를 업데이트합니다.
  • toast.dismiss 그리고 toast.dismissAll - 하나의 토스트를 제거하거나 큐를 비웁니다.
메서드설명
toast.show(config, options?)전체 __CAPGO_KEEP_0__를 사용하여 토스트를 표시합니다. 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()모든 보이는 토스트와 대기 중인 토스트를 모두 닫습니다.

이 참조는 __CAPGO_KEEP_0__에서同步됩니다. src/definitions.ts 에서 capacitor-pretty-toast.

capgo/capacitor-pretty-toast에서 계속 진행하세요.

“capgo/capacitor-pretty-toast에서 계속 진행하세요.”라는 제목의 섹션

Capgo를 사용 중이라면 __CAPGO_KEEP_0__/__CAPGO_KEEP_1__-pretty-toast capgo/capacitor-pretty-toast native 플러그인 작업을 계획하고 있으면 __CAPGO_KEEP_0__/__CAPGO_KEEP_1__-pretty-toast와 연결하세요. Capgo 플러그인 디렉토리 Capgo 플러그인 디렉토리에서 제품 워크플로우를 위해 Capacitor 플러그인들에 의해 Capgo Capacitor 플러그인들에 의해 Capgo의 구현 세부 사항을 위해 플러그인 추가 또는 업데이트 플러그인 추가 또는 업데이트의 구현 세부 사항을 위해 아이오닉 엔터프라이즈 플러그인 대체 아이오닉 엔터프라이즈 플러그인 대체의 제품 워크플로우를 위해, 그리고 Capgo 네이티브 빌드 Capgo 네이티브 빌드의 제품 워크플로우를 위해