共用方式為


ServiceInfo.ForegroundServiceType 屬性

定義

傳回資訊清單中指定的前景服務類型。

public virtual Android.Content.PM.ForegroundService ForegroundServiceType { [Android.Runtime.Register("getForegroundServiceType", "()I", "GetGetForegroundServiceTypeHandler", ApiSince=29)] get; }
[<get: Android.Runtime.Register("getForegroundServiceType", "()I", "GetGetForegroundServiceTypeHandler", ApiSince=29)>]
member this.ForegroundServiceType : Android.Content.PM.ForegroundService

屬性值

資訊清單中指定的前景服務類型。

屬性

備註

傳回 manifest 中指定的前景服務類型。

android.content.pm.ServiceInfo.getForegroundServiceType() JAVA 檔。

此頁面的部分是根據 原始碼專案所建立和共用的工作進行修改,並根據中所述的詞彙使用。

適用於