0.0.3 • Published 1 year ago

capacitor-progress-dialog v0.0.3

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

capacitor-progress-dialog

A Capacitor plugin for Android progress dialog allows developers to easily display a progress dialog in their Ionic apps when performing long-running tasks. The plugin provides a simple API for showing and hiding the progress dialog, as well as customizing its appearance and behavior.

Install

npm install capacitor-progress-dialog
npx cap sync

Supported Platform

  • Android

API

show(...)

Shows the progress dialog

show(options: ProgressDialogOptions) => Promise<{ value: string; }>
ParamType
optionsProgressDialogOptions

Returns: Promise<{ value: string; }>


hide()

Hides the progress dialog

hide() => Promise<void>

Interfaces

ProgressDialogOptions

PropTypeDescription
titlestringTitle of the progress dialog
messagestringMessage of the progress dialog
cancelablebooleanSet to true for cancelable dialog
spinnerColorstringColor of the spinner in HEX string
textColorstringColor of the text in HEX string
backgroundColorstringColor of the background in HEX string

Example

import { ProgressDialog } from 'capacitor-progress-dialog';

async showLoading() {
  await ProgressDialog.show({
    title: "Downloading",
    message: "Please Wait..",
    spinnerColor: "#f04141",
    textColor: "#ffffff",
    backgroundColor: "#1d1d1d",
    cancelable: true,
  });
}

async hideLoading() {
  await ProgressDialog.hide();
}

Screenshot


0.0.3

1 year ago

0.0.2

1 year ago

0.0.1

1 year ago