Introduction ( download address )
Ba-AwCalendarS is a widget (desktop widget, widget) plug-in. The default is a simple time style. If you need other interfaces, you can contact the author to customize.
- Support regular update (this plugin is every minute)
- Support click event monitoring
- Support manual change of page content
- Support for adding widgets to the desktop within the app
- Support setting the preview image of the gadget
Similar plug-ins
Widgets, Desktop Widgets, Widgets (Music Player) Ba-AppWidget ( Documentation )
screenshot display
Instructions
script
Introduce components in
const awCalendar = uni.requireNativePlugin('Ba-AwCalendarS')
script
Called in (example reference, you can modify it according to your own business and calling method)
const awCalendar = uni.requireNativePlugin('Ba-AwCalendarS')
export default {
data() {
return {
msgList: [],
}
},
methods: {
init() {
//初始化配置,使用默认配置可以不调用
awCalendar.init({
},
res => {
console.log(res);
uni.showToast({
title: res.msg,
icon: "none",
duration: 3000
})
});
},
requestPin() {
//添加到桌面
let that = this;
awCalendar.requestPin({
},
res => {
console.log(res);
that.msgList.unshift(JSON.stringify(res))
uni.showToast({
title: res.msg,
icon: "none",
duration: 3000
})
});
},
updateAW() {
//更新内容
let that = this;
awCalendar.updateAW({
},
res => {
console.log(res);
uni.showToast({
title: res.msg,
icon: "none",
duration: 3000
})
});
},
}
api list
method name | illustrate |
---|---|
init | Initialize the configuration, you can not call |
requestPin | Add gadgets to the desktop |
updateAW | Update the content of the gadget |
Series plug-in
Image selection plugin Ba-MediaPicker ( documentation )
Image editing plugin Ba-ImageEditor ( documentation )
File picker plugin Ba-FilePicker ( documentation )
Application message notification plug-in (multiple styles, new support for resident notification mode) Ba-Notify ( documentation )
Apply the unread badge plugin Ba-Shortcut-Badge ( documentation )
Applying the Ba-Autoboot plugin ( documentation )
Scan code native plug-in (millisecond level, support multi-code) Ba-Scanner-G ( documentation )
Native plug-in for scanning code - new (can customize the interface version arbitrarily; support continuous scanning code; support setting scanning code format) Ba-Scanner ( documentation )
Dynamically modify the status bar, navigation bar background color, font color plug-in Ba-AppBar ( documentation )
Native sqlite local database management Ba-Sqlite ( documentation )
Android keep-alive plug-in (using a variety of mainstream technologies) Ba-KeepAlive ( documentation )
Android shortcut (desktop long press app icon) Ba-Shortcut ( documentation )
Custom image watermark (anywhere) Ba-Watermark ( documentation )
The closest image compression plug-in to WeChat is Ba-ImageCompressor ( documentation )
Video compression, video editing plug-in Ba-VideoCompressor ( documentation )
Dynamically switch application icons and names (such as New Year, National Day, etc.) Ba-ChangeIcon ( documentation )
Native Toast pop-up prompt (through all interfaces, through native; custom colors, icons) Ba-Toast ( documentation )
Image graffiti, brush Ba-ImagePaint ( documentation )
pdf reading (gesture zoom, display page number) Ba-Pdf ( documentation )
Sound reminder, vibration reminder, voice broadcast Ba-Beep ( documentation )
Websocket native service (automatic reconnection, heartbeat detection) Ba-Websocket ( documentation )
SMS monitoring (verification code) Ba-Sms ( documentation )
Smart Install (Automatic Upgrade) Ba-SmartUpgrade ( documentation )
Monitor system broadcast, custom broadcast Ba-Broadcast ( documentation )
Listen to notification bar messages (support whitelist, blacklist, filter) Ba-NotifyListener ( documentation )
Global graying, mourning graying (dynamic, support nvue, vue at the same time) Ba-Gray ( documentation )
Get Device Unique Identifier (OAID, AAID, IMEI, etc.) Ba-IdCode ( documentation )
Real-time positioning (system, background operation, support screen) plug-in Ba-Location ( documentation )
Widgets, Desktop Widgets, Widgets Ba-AppWidget ( documentation )
Widgets, widgets, widgets (calendar, time) Ba-AwCalendarS ( documentation )
Picture-in-picture floating window (video) Ba-VideoPip ( documentation )