Article # 640, added by Geoworks, historical record
| first |
previous |
index |
next |
last |
Lid just opened on Nokia 9000 Communicator.
Q. Is there a way to detect if the lid has just been opened on the Nokia 9000 Communicator? Or how about when the phone goes on or off? A. Yes, you can register for noticiations by adding yourself to the GCNSLT_RESPONDER_NOTIFICATIONS GCN list. Wait for the message MSG_META_NOTIFY and check for the GWNT_RESPONDER_NOTIFICATION notification type in the notificationType parameter. Check the data parameter for one of several ResponderNotificationType's. The two you're interested in would be RNT_LID_OPEN and RNT_LID_CLOSED. There are more listed in Include/Internal/respondrStr.def and CInclude/Internal/respondr.goh.