7 package com.google.appinventor.components.runtime.util;
11 import android.os.Handler;
20 private Handler handler;
23 private boolean enabled;
40 this(component, enabled, interval,
new Handler());
56 this.handler = handler;
57 this.component = component;
60 this.enabled = enabled;
61 this.interval = interval;
63 handler.postDelayed(
this, interval);
82 this.interval = interval;
84 handler.removeCallbacks(
this);
85 handler.postDelayed(
this, interval);
106 handler.removeCallbacks(
this);
109 this.enabled = enabled;
112 handler.postDelayed(
this, interval);
125 handler.postDelayed(
this, interval);