
Security News
MCP Steering Committee Launches Official MCP Registry in Preview
The MCP Steering Committee has launched the official MCP Registry in preview, a central hub for discovering and publishing MCP servers.
@capacitor/toast
Advanced tools
The Toast API provides a notification pop up for displaying important information to a user. Just like real toast!
The Toast API provides a notification pop up for displaying important information to a user. Just like real toast!
npm install @capacitor/toast
npx cap sync
PWA Elements are required for the Toast plugin to work.
import { Toast } from '@capacitor/toast';
const showHelloToast = async () => {
await Toast.show({
text: 'Hello!',
});
};
show(options: ShowOptions) => Promise<void>
Shows a Toast on the screen
Param | Type |
---|---|
options | ShowOptions |
Since: 1.0.0
Prop | Type | Description | Default | Since |
---|---|---|---|---|
text | string | Text to display on the Toast | 1.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 |
FAQs
The Toast API provides a notification pop up for displaying important information to a user. Just like real toast!
The npm package @capacitor/toast receives a total of 14,589 weekly downloads. As such, @capacitor/toast popularity was classified as popular.
We found that @capacitor/toast demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 15 open source maintainers collaborating on the project.
Did you know?
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.
Security News
The MCP Steering Committee has launched the official MCP Registry in preview, a central hub for discovering and publishing MCP servers.
Product
Socket’s new Pull Request Stories give security teams clear visibility into dependency risks and outcomes across scanned pull requests.
Research
/Security News
npm author Qix’s account was compromised, with malicious versions of popular packages like chalk-template, color-convert, and strip-ansi published.