Code example for WifiManager

Methods: getConnectionInfo

0
	    mBridge = bridge;
	} 
	 
	@Bridge("system.wifi.mac.get") 
	public void getMacAddress(Callback<WiFiGetMacAddressResult> callback) {
		String addr = mWifiManager.getConnectionInfo().getMacAddress();
		WiFiGetMacAddressResult result = new WiFiGetMacAddressResult();
		result.setMacAddress(addr);
		callback.succeed(mBridge, result);
	} 
	 
	@Bridge("system.wifi.enable") 
	public void enable() { 
		mWifiManager.setWifiEnabled(true);
	} 
	 
	@Bridge("system.wifi.disable") 
	public void disable() { 
		mWifiManager.setWifiEnabled(false);
	}