語言

NfcFCardEmulation.GetSystemCodeForService(ComponentName) 方法

定義

取得指定服務的當前系統代碼。

[Android.Runtime.Register("getSystemCodeForService", "(Landroid/content/ComponentName;)Ljava/lang/String;", "", ApiSince=24)]
public string? GetSystemCodeForService(Android.Content.ComponentName? service);
[<Android.Runtime.Register("getSystemCodeForService", "(Landroid/content/ComponentName;)Ljava/lang/String;", "", ApiSince=24)>]
member this.GetSystemCodeForService : Android.Content.ComponentName -> string

參數

service
ComponentName

服務的元件名稱

傳回

現行系統代碼

屬性

備註

取得指定服務的當前系統代碼。

在呼叫 #registerSystemCodeForService(ComponentName, String)之前,會回傳 Manifest 檔案中包含的系統代碼。 撥打 #registerSystemCodeForService(ComponentName, String)後,系統代碼會被回傳。 呼叫 #unregisterSystemCodeForService(ComponentName)後,會回傳「null」。

Java 文件 android.nfc.cardemulation.NfcFCardEmulation.getSystemCodeForService(android.content.ComponentName)。

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

適用於