sPFWFDMid/src/main/java/it/polimi/spf/wfd/WifiDirectMiddleware.java
public void notifyConnectedDeviceToGui(@NonNull String notificationType, @Nullable String id) {
        Intent intent = new Intent();
        if (id != null) {
            intent.putExtra(CLIENT_IDENTIFIER, id);
        }
        intent.setAction(notificationType);
        mContext.sendBroadcast(intent);
    }
public void notifyConnectedDeviceToGui(@NonNull String notificationType, @Nullable String id) {
        Intent intent = new Intent();
        if (id != null) {
            intent.putExtra(CLIENT_IDENTIFIER, id);
        }
        intent.setAction(notificationType);
        mContext.sendBroadcast(intent);
    }
public void notifyConnectedDeviceToGui ( @ NonNull String notificationType , @ Nullable String id ) { Intent intent = new Intent ( ) ; if ( id != null ) { intent . putExtra ( CLIENT_IDENTIFIER , id ) ; } intent . setAction ( notificationType ) ; mContext . sendBroadcast ( intent ) ; }
Method to send in broadcast a new connected device to the UI
Method to send in broadcast a new connected device to the UI