SHARE
TWEET

Untitled

a guest Sep 19th, 2019 99 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. class LANDiscoveryRegistrationListener implements NsdManager.RegistrationListener
  2. {
  3.     private static final String TAG = "androidutils";
  4.  
  5.     public static NsdManager.RegistrationListener initializeRegistrationListener(int instanceId) {
  6.         return new LANDiscoveryRegistrationListener();
  7.     }
  8.    
  9.     @Override
  10.     public void onServiceRegistered(NsdServiceInfo nsdServiceInfo) {
  11.         GodotLib.calldeferred(instanceId, "_on_broadcast_started", new Object[] { nsdServiceInfo.getServiceName() });
  12.     }
  13.  
  14.     @Override
  15.     public void onRegistrationFailed(NsdServiceInfo serviceInfo, int errorCode) {
  16.         GodotLib.calldeferred(instanceId, "_on_broadcast_failed", new Object[] { errorCode });
  17.     }
  18.    
  19.     @Override
  20.     public void onServiceUnregistered(NsdServiceInfo nsdServiceInfo)
  21.     {
  22.         Log.d(TAG, "Service Unregistered");
  23.     }
  24. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top