public dispatchMessage ( android arg0 ) : void | ||
arg0 | android | |
return | void |
public virtual void dispatchMessage(android.os.Message arg0)
{
global::MonoJavaBridge.JavaBridge.CallVoidMethod(this, global::android.os.Handler.staticClass, "dispatchMessage", "(Landroid/os/Message;)V", ref global::android.os.Handler._m3, global::MonoJavaBridge.JavaBridge.ConvertToValue(arg0));
}
internal static void SendMessage (Handler handler, Message msg, long at) { long now = SystemClock.uptimeMillis (); int age = current_age; Action dispatch = () => { mutex.WaitOne (); if (age == current_age) handler.dispatchMessage (msg); mutex.ReleaseMutex (); }; if (now >= at) { ThreadPool.QueueUserWorkItem ((state) => control.Invoke (dispatch)); } else { SWF.Timer timer = new SWF.Timer (); timer.Interval = (int)(at - now); timer.Tick += (sender, e) => { timer.Stop (); control.Invoke (dispatch); }; timer.Start (); } }