Code example for WifiManager.MulticastLock

Methods: acquire, isHeld, release

0
	} 
 
	public void release() { 
		if (isHeld()) { 
			QLog.i(getClass().getName(), "Releasing MulticastLock!");
			wifiMulticastLock.release();
		} 
	} 
 
	private boolean isHeld() { 
		return wifiMulticastLock != null && wifiMulticastLock.isHeld();
	} 
} 
Experience pair programming with AI  Get Codota for Java