MobileMobile | Continue
       
Nibiru VR Development Nibiru Studio Kiosk mode / Disable Nibiru menu button

Kiosk mode / Disable Nibiru menu button

jeremywarne Post time 2018-4-24 10:03 | Show all posts [Copy URL]
1 852
Hi,

Is it possible to disable the Menu button, or else to remove the Close App button from this menu? I want to provide a VR kiosk for my users where they can only run my app. I don't want users to be able to see any of the device menus, any of the system apps, settings, or anything else; just my app. I've tried setting the device owner and blocking key presses, but I can't control the menu button.

Any help would be greatly appreciated.

Thank you very much,
Jeremy
Reply

Use magic Report

Post time 2018-4-24 10:03 | Show all posts
You can refer to this api :
NibiruVRView.regHandleNKey(NibiruVR.NKEY_APP_HANDLE);

Respond to the N key. In Nibiru system, short pressing N key will
start the system menu uniformly. If the application wants to customize
the menu function, could register and open the N to respond. After
opening, the N key will no longer be a system menu, but as a key value
sent to the application.
regHandleNKey(int handle);
Parameter definition:
NibiruVR.NKEY_APP_HANDLE // Application handle N key
NibiruVR.NKEY_SYS_HANDLE // System handle N key, system will
display after pressing the key
You have to log in before you can reply Login | Register

Points Rules

!fastreply! Top !return_list!