다음을 통해 공유


Service.OnCreate Method

Definition

Called by the system when the service is first created.

[Android.Runtime.Register("onCreate", "()V", "GetOnCreateHandler")]
public virtual void OnCreate ();
[<Android.Runtime.Register("onCreate", "()V", "GetOnCreateHandler")>]
abstract member OnCreate : unit -> unit
override this.OnCreate : unit -> unit
Attributes

Remarks

Called by the system when the service is first created. Do not call this method directly.

Java documentation for android.app.Service.onCreate().

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to