Code example for Handler

Methods: getLooper

0
 
        public DisplayHandler() { 
        } 
 
        public DisplayHandler(Handler handler) {
            super(handler.getLooper());
        } 
 
        public void reportConnectionState(final int newState,
                final BrailleDisplayProperties displayProperties) {
            obtainMessage(MSG_REPORT_CONNECTION_STATE, newState, 0,
                    displayProperties)
                    .sendToTarget(); 
        } 
 
        public void reportInputEvent(BrailleInputEvent event) {
            obtainMessage(MSG_REPORT_INPUT_EVENT, event).sendToTarget();
        } 
 
        public void scheduleRebind() { 
            synchronized (this) {