npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@vaecebyz/capacitor-getui

v0.1.4

Published

Capacitor Getui Plugin

Readme

@vaecebyz/capacitor-getui

getui

Install

npm install @vaecebyz/capacitor-getui
npx cap sync

API

TypeScript definitions mapping to native @PluginMethod methods in GetuiPlugin.java

echo(...)

echo(options: { value: string; }) => any

原样返回输入,调试用

| Param | Type | | ------------- | ------------------------------- | | options | { value: string; } |

Returns: any


init()

init() => any

初始化个推 SDK,返回版本与当前 clientId(若已生成)

Returns: any


getVersion()

getVersion() => any

获取当前 SDK 版本

Returns: any


getClientId()

getClientId() => any

获取当前设备 clientId

Returns: any


setTag(...)

setTag(options: { tags: string[]; sn?: string; }) => any

设置标签

| Param | Type | | ------------- | --------------------------------------- | | options | { tags: {}; sn?: string; } |

Returns: any


turnOnPush()

turnOnPush() => any

打开推送

Returns: any


turnOffPush()

turnOffPush() => any

关闭推送

Returns: any


setSilentTime(...)

setSilentTime(options: { begin_hour: number; duration: number; }) => any

设定静默时间(单位:小时),begin_hour:0-23, duration: 持续小时

| Param | Type | | ------------- | ------------------------------------------------------ | | options | { begin_hour: number; duration: number; } |

Returns: any


isPushTurnedOn()

isPushTurnedOn() => any

查询推送是否开启

Returns: any


areNotificationsEnabled()

areNotificationsEnabled() => any

系统通知权限是否开启

Returns: any


openNotification()

openNotification() => any

打开系统通知设置页

Returns: any


setHwBadgeNum(...)

setHwBadgeNum(options: { num: number; }) => any

设置华为角标

| Param | Type | | ------------- | ----------------------------- | | options | { num: number; } |

Returns: any


setOPPOBadgeNum(...)

setOPPOBadgeNum(options: { num: number; }) => any

设置 OPPO 角标

| Param | Type | | ------------- | ----------------------------- | | options | { num: number; } |

Returns: any


setVivoAppBadgeNum(...)

setVivoAppBadgeNum(options: { num: number; }) => any

设置 vivo 角标

| Param | Type | | ------------- | ----------------------------- | | options | { num: number; } |

Returns: any


addListener('onReceiveClientId', ...)

addListener(eventName: 'onReceiveClientId', listenerFunc: (data: { client_id?: string; online?: boolean; }) => void) => any

添加事件监听(Capacitor 自动注入类型)

| Param | Type | | ------------------ | ------------------------------------------------------------------------- | | eventName | 'onReceiveClientId' | | listenerFunc | (data: { client_id?: string; online?: boolean; }) => void |

Returns: any


addListener('onReceiveMessageData', ...)

addListener(eventName: 'onReceiveMessageData', listenerFunc: (data: any) => void) => any

| Param | Type | | ------------------ | ----------------------------------- | | eventName | 'onReceiveMessageData' | | listenerFunc | (data: any) => void |

Returns: any


addListener('localNotificationReceived', ...)

addListener(eventName: 'localNotificationReceived', listenerFunc: (data: any) => void) => any

| Param | Type | | ------------------ | ---------------------------------------- | | eventName | 'localNotificationReceived' | | listenerFunc | (data: any) => void |

Returns: any


addListener(string, ...)

addListener(eventName: string, listenerFunc: (data: any) => void) => any

| Param | Type | | ------------------ | ----------------------------------- | | eventName | string | | listenerFunc | (data: any) => void |

Returns: any


Interfaces

PluginListenerHandle

| Prop | Type | | ------------ | ------------------------- | | remove | () => any |