메뉴로 가기

@capgo/capacitor-pretty-toast

iOS, Android, Web에서 네이티브 보기에 가까운 토스트 알림을 표시하고 큐잉, 업데이트, 액션, 아이콘, 프라미스 상태와 같은 기능을 사용하세요.

@capgo/capacitor-pretty-toast __CAPGO_KEEP_0__ native-first toast notifications을 위한 __CAPGO_KEEP_1__ 앱에 제공합니다. iOS와 Android에서 native overlay를 렌더링하고 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_0__

__CAPGO_KEEP_0__
__CAPGO_KEEP_0__
기본 기능

__CAPGO_KEEP_0__

__CAPGO_KEEP_0__
  • toast.show - __CAPGO_KEEP_0__을 사용하여 커스텀 토스트를 표시합니다.
  • toast.success, toast.error, toast.info, toast.warning - 제목과 선택적 설정을 사용하여 일반적인 의미의 토스트를 표시합니다.
  • toast.loading - 지속적인 로딩 토스트를 표시합니다.
  • toast.update - 기존 토스트를 업데이트합니다.
  • toast.promise - 로딩, 성공, 오류 상태를 사용하여 프로미스를 추적합니다.
  • toast.dismiss and 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()모든 보이는 토스트와 대기 중인 토스트를 모두 닫습니다.

이 참조는 GitHub에서 synced됩니다. src/definitions.tscapacitor-pretty-toast.

Keep going from @capgo/capacitor-pretty-toast

Section titled “Keep going from @capgo/capacitor-pretty-toast”

Capgo를 사용 중이라면 @capgo/capacitor-pretty-toast Capgo와 연결하여 Capgo 플러그인 디렉토리 Capgo 플러그인 디렉토리 내의 제품 워크플로우 Capacitor 플러그인들에 의해 Capgo Capacitor 플러그인들에 의해 Capgo의 구현 세부 사항 플러그인을 추가하거나 업데이트 구현 세부 정보에 대한 추가 또는 업데이트 플러그인에 대해 아이오닉 엔터프라이즈 플러그인 대체 __CAPGO_KEEP_0__ 네이티브 빌드의 제품 워크플로에 대해 Capgo 네이티브 빌드 Capgo 네이티브 빌드의 제품 워크플로에 대해