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 🙏

© 2024 – Pkg Stats / Ryan Hefner

@daiweinpm/cordova-plugin-qqsdk

v1.1.5

Published

Android SDK 3.5.12 IOS SDK 3.5.11

Downloads

20

Readme

@daiweinpm/cordova-plugin-qqsdk

QQ安卓SDK 3.5.12 IOS SDK 3.5.11

新版说明

集成QQSDK

安装

npm i @daiweinpm/cordova-plugin-qqsdk
cordova plugin add @daiweinpm/cordova-plugin-qqsdk --variable QQ_APP_ID=YOUR_QQ_APPID
cordova build ios
cordova build android

使用方式


/**
 * 请在代码中引入这一句 或者从window中使用 window.QQSDK
 */
declare const QQSDK;

/**
 * 插件安装失败时此对象可能无法使用 所以需要加入判断
 */
if (QQSDK) {
    /**
    * 检查QQ是否安装
    */
    QQSDK.checkClientInstalled(): Promise<bool>;

    /**
    * 在调用其他SDK接口前调用该接口通知 SDK 用户是否已授权应用获取设备信息的权限,或在应用的取消授权界面中提供用户撤销获取设备信息的权限
    * 
    * 布尔 isPermission 
    */
    QQSDK.setIsPermissionGranted(isPermission): Promise<any>;

    /**
    * QQ授权登录 client 客户端 1 = QQ(默认),2 = tim
    */
    QQSDK.login(client): Promise<any>;

    /**
    * QQ退出登录
    */
    QQSDK.logout(): Promise<any>;

    /**
    * 分享到QQ
    * 
    * params.client 客户端 1 = QQ(默认),2 = tim
    * params.type  text: 分享纯文本,image: 分享纯图片,audio:分享音乐,miniprogram:分享小程序,default:分享图文消息/新闻消息
    * params.title 标题(type为text,audio,video,miniprogram,default时生效)
    * params.summary 摘要(type为audio,video,miniprogram,default时生效)
    * params.arkjson 参照官网说明
    * params.targeturl 目标地址(type为audio,video,miniprogram,default时生效)
    * params.imageurl 图片地址(type为image,audio,video,miniprogram,default时生效)
    * params.audiourl 音乐地址(type为audio时生效)
    * params.miniprogramappid 小程序ID(type为miniprogram时生效)
    * params.miniprogrampath 小程序路径(type为miniprogram时生效)
    * params.miniprogramtype 小程序类型:默认正式版(3),可选测试版(1)、预览版(4)(type为miniprogram时生效)
    */
    QQSDK.shareToQQ(params: {}): Promise<any>;


    /**
    * 分享到QQ空间
    * 
    * params.client 客户端 1 = QQ(默认),2 = tim
    * params.type  miniprogram:分享小程序,default:分享图文消息/新闻消息
    * params.title 标题
    * params.summary 摘要
    * params.targeturl 目标地址
    * params.imageurl 图片地址
    * params.miniprogramappid type为miniprogram时生效,小程序ID
    * params.miniprogrampath type为miniprogram时生效,小程序路径
    * params.miniprogramtype type为miniprogram时生效,小程序类型:默认正式版(3),可选测试版(1)、预览版(4)
    */
    QQSDK.shareToQzone(params: {}): Promise<any>;
}