Code example for IntentFilter

Methods: match

0
            mReceiver = receiver;
            mFilter = filter;
        } 
 
        public boolean dispatchBroadcast(Intent intent) {
            if (mFilter.match(getContentResolver(), intent, false, TAG) > 0) {
                if (mReceiver != null) {
                    final Context context = BroadcastInterceptingContext.this;
                    mReceiver.onReceive(context, intent);
                    return false; 
                } else { 
                    set(intent);
                    return true; 
                } 
            } else { 
                return false; 
            } 
        } 
 
        @Override 
Connect your IDE to all the code out there  Get Codota for Java