語言

StartCommandFlags 列舉

定義

列舉由 Redelivery、 及Retry成員回傳的值,並作為 F:Android.App.Service.OnStartCommand 成員的參數。

此列舉支援其成員值的位元組合。

[System.Flags]
public enum StartCommandFlags
[<System.Flags>]
type StartCommandFlags = 
繼承
StartCommandFlags
屬性

欄位

名稱 Description
Redelivery 1

若 Intent 是先前交付意圖的重新交付,則 onStartCommand(Intent, int, int) 會設定此旗標,因為該服務先前已返回 START_REDELIVER_INTENT,但在呼叫 stopSelf(int) 前已終止。

Retry 2

如果 Intent 是重試,因為原本的嘗試從未到達或返回 onStartCommand(Intent, int, int),則會設定這個旗標。

備註

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於