User leave status and return status in air

Source: Internet
Author: User

by idlethreshold=10; (sec)

User_idle, user_present Events

The user's left state and return status can be processed.

For example, the user 5 minutes without mouse keyboard action, into the left state, with the mouse keyboard action back online status.

NativeApplication.nativeApplication.idleThreshold = idleTime; NativeApplication.nativeApplication.addEventListener (Event.user_idle,onidle); NativeApplication.nativeApplication.addEventListener (event.user_present,onpresence);

User leave status and return status in air

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.