diff --git a/src/Mono.Android/Java.Lang/Thread.cs b/src/Mono.Android/Java.Lang/Thread.cs index cc45dd16aed..787bebf4759 100644 --- a/src/Mono.Android/Java.Lang/Thread.cs +++ b/src/Mono.Android/Java.Lang/Thread.cs @@ -55,15 +55,46 @@ public static RunnableImplementor Remove (Action handler) } } + /// + /// Initializes a new that runs the specified when started. + /// + /// The delegate to execute on the new thread. + /// Android documentation for java.lang.Thread public Thread (Action runHandler) : this (new RunnableImplementor (runHandler)) {} + /// + /// Initializes a new with the specified name that runs the specified when started. + /// + /// The delegate to execute on the new thread. + /// The name of the new thread. + /// Android documentation for java.lang.Thread public Thread (Action runHandler, string threadName) : this (new RunnableImplementor (runHandler), threadName) {} + /// + /// Initializes a new in the specified thread group that runs the specified when started. + /// + /// The thread group to which the new thread belongs. + /// The delegate to execute on the new thread. + /// Android documentation for java.lang.Thread public Thread (ThreadGroup group, Action runHandler) : this (group, new RunnableImplementor (runHandler)) {} + /// + /// Initializes a new in the specified thread group with the specified name that runs the specified when started. + /// + /// The thread group to which the new thread belongs. + /// The delegate to execute on the new thread. + /// The name of the new thread. + /// Android documentation for java.lang.Thread public Thread (ThreadGroup group, Action runHandler, string threadName) : this (group, new RunnableImplementor (runHandler), threadName) {} + /// + /// Initializes a new in the specified thread group with the specified name and stack size that runs the specified when started. + /// + /// The thread group to which the new thread belongs. + /// The delegate to execute on the new thread. + /// The name of the new thread. + /// The desired stack size, in bytes, for the new thread, or 0 to use the default. + /// Android documentation for java.lang.Thread public Thread (ThreadGroup group, Action runHandler, string threadName, long stackSize) : this (group, new RunnableImplementor (runHandler), threadName, stackSize) {} } } -