public static void sendDataToPebbleWithTransactionId ( final Context context , final UUID watchappUuid , final PebbleDictionary data , final int transactionId ) throws IllegalArgumentException { if ( watchappUuid == null ) { throw new IllegalArgumentException ( "uuid cannot be null" ) ; } if ( data == null ) { throw new IllegalArgumentException ( "data cannot be null" ) ; } if ( data . size ( ) == 0 ) { return ; } final Intent sendDataIntent = new Intent ( INTENT_APP_SEND ) ; sendDataIntent . putExtra ( APP_UUID , watchappUuid ) ; sendDataIntent . putExtra ( TRANSACTION_ID , transactionId ) ; sendDataIntent . putExtra ( MSG_DATA , data . toJsonString ( ) ) ; context . sendBroadcast ( sendDataIntent ) ; }
Send one - or - more key - value pairs to the watch - app identified by the provided UUID .