List of usage examples for com.google.gwt.tok.client DeviceManager detectDevice
public native void detectDevice() ;
From source file:com.google.gwt.tok.test.client.model.TokModel.java
private void connect() { // Check devices DeviceManager deviceManager = tokBox.initDeviceManager(API_KEY); deviceManager.addDeviceStatusHandler(this); deviceManager.detectDevice(); // Init session session = tokBox.initSession(DEV_SESSION_ID); session.addSessionHandler(this); session.connect(API_KEY, DEV_TOKEN); }