C# Class StartedServicesDemo.TimestampService

Inheritance: Android.App.Service
Afficher le fichier Open project: xamarin/monodroid-samples

Méthodes publiques

Méthode Description
OnBind ( Android.Content.Intent intent ) : IBinder
OnCreate ( ) : void
OnDestroy ( ) : void
OnStartCommand ( Android.Content.Intent intent, StartCommandFlags flags, int startId ) : StartCommandResult

Private Methods

Méthode Description
DispatchNotificationThatServiceIsRunning ( ) : void
GetFormattedTimestamp ( ) : string

This method will return a formatted timestamp to the client.

Method Details

OnBind() public méthode

public OnBind ( Android.Content.Intent intent ) : IBinder
intent Android.Content.Intent
Résultat IBinder

OnCreate() public méthode

public OnCreate ( ) : void
Résultat void

OnDestroy() public méthode

public OnDestroy ( ) : void
Résultat void

OnStartCommand() public méthode

public OnStartCommand ( Android.Content.Intent intent, StartCommandFlags flags, int startId ) : StartCommandResult
intent Android.Content.Intent
flags StartCommandFlags
startId int
Résultat StartCommandResult