In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-03-01 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/02 Report--
This article will introduce in detail "how to set screen brightness in WeChat Mini Programs", the content steps are clear and detailed, and the details are handled properly, and the editor updates different knowledge points every day. I hope this article "how to set screen brightness in WeChat Mini Programs" can give you unexpected gains, please follow the editor's ideas slowly in depth, the specific content is as follows, let's go to harvest new knowledge.
Wx.setScreenBrightness (OBJECT)
Sets the screen brightness.
OBJECT parameter description:
The parameter type is required to indicate that valueNumber is the screen luminance value, and the range 0 is the darkest. 1 the brightest successFunction No API calls successful failFunction No API calls failed callback functions completeFunction No API calls end callback functions (both successful and failed calls will be executed) wx.getScreenBrightness (OBJECT)
The basic library 1.2.0 is supported, and the lower version needs to be compatible.
Gets the screen brightness.
OBJECT parameter description:
The parameter type is required to indicate that the successFunction API calls successfully failFunction No API calls failed callback functions completeFunction No API calls end callback functions (both successful and failed calls will be executed)
Success return parameter description:
The parameter type describes the luminance value of the valueNumber screen, with a range of 0: 1, 0 is the darkest, and 1 is the brightest wx.setKeepScreenOn (OBJECT).
The basic library 1.4.0 is supported, and the lower version needs to be compatible.
Sets whether to keep it on. It only takes effect on the current Mini Program. The setting is invalid after leaving Mini Program.
OBJECT parameter description:
The parameter name type is required to indicate whether keepScreenOnBoolean keeps the screen bright successFunction No API call successful callback function failFunction No API call failed callback function completeFunction No API call ends callback function (both successful and failed call will be executed)
Success return parameter description:
The parameter name type describes the result of the errMsgString call
Sample code:
/ / what is the advantage of keeping the screen bright wx.setKeepScreenOn ({keepScreenOn: true}) Mini Program? compared with developers, Mini Program is less difficult to develop, can save development and operating costs, and allows developers to quickly develop a Mini Program. And Mini Program can be easily obtained and spread in Wechat, which can meet the basic life applications, in line with life services offline stores and non-rigid needs of low-frequency applications. For users, it can save time cost and mobile phone memory space, and have excellent use experience at the same time.
Thank you for reading this. The editor hopes that you will have the most profound experience from the practical level on the key issue of "how to set screen brightness in WeChat Mini Programs". If you want to read more related articles, welcome to follow the industry information channel!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.