New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@capacitor/toast

Package Overview
Dependencies
Maintainers
0
Versions
717
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@capacitor/toast

The Toast API provides a notification pop up for displaying important information to a user. Just like real toast!

  • 7.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
0
Created
Source

@capacitor/toast

The Toast API provides a notification pop up for displaying important information to a user. Just like real toast!

Install

npm install @capacitor/toast
npx cap sync

PWA Notes

PWA Elements are required for the Toast plugin to work.

Example

import { Toast } from '@capacitor/toast';

const showHelloToast = async () => {
  await Toast.show({
    text: 'Hello!',
  });
};

API

show(...)

show(options: ShowOptions) => Promise<void>

Shows a Toast on the screen

ParamType
optionsShowOptions

Since: 1.0.0


Interfaces

ShowOptions
PropTypeDescriptionDefaultSince
textstringText to display on the Toast1.0.0
duration'short' | 'long'Duration of the Toast, either 'short' (2000ms) or 'long' (3500ms)'short'1.0.0
position'top' | 'center' | 'bottom'Position of the Toast. On Android 12 and newer all toasts are shown at the bottom.'bottom'1.0.0

Keywords

FAQs

Package last updated on 20 Jan 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc