C# Class StartedServicesDemo.TimestampService

Inheritance: Android.App.Service
Exibir arquivo Open project: xamarin/monodroid-samples

Public Methods

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

Private Methods

Method Description
DispatchNotificationThatServiceIsRunning ( ) : void
GetFormattedTimestamp ( ) : string

This method will return a formatted timestamp to the client.

Method Details

OnBind() public method

public OnBind ( Android.Content.Intent intent ) : IBinder
intent Android.Content.Intent
return IBinder

OnCreate() public method

public OnCreate ( ) : void
return void

OnDestroy() public method

public OnDestroy ( ) : void
return void

OnStartCommand() public method

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