語言

WifiAwareManager.CreateTxtRecordTlvBuffer 方法

定義

依照 Wi-Fi Aware 規範 4.0 表 150,建立包含 TXT 記錄的 TLV 緩衝區。

[Android.Runtime.Register("createTxtRecordTlvBuffer", "(Ljava/util/Map;)[B", "", ApiSince=37)]
public static byte[] CreateTxtRecordTlvBuffer(System.Collections.Generic.IDictionary<string,string> txtRecord);
[<Android.Runtime.Register("createTxtRecordTlvBuffer", "(Ljava/util/Map;)[B", "", ApiSince=37)>]
static member CreateTxtRecordTlvBuffer : System.Collections.Generic.IDictionary<string, string> -> byte[]

參數

txtRecord
IDictionary<String,String>

TXT 記錄鍵值對的映射,格式依 於 http://files.dns-sd.org/draft-cheshire-dnsext-dns-sd.txt。

傳回

Byte[]

包含 TXT 記錄的 TLV 緩衝區。

屬性

備註

依照 Wi-Fi Aware 規範 4.0 表 150,建立包含 TXT 記錄的 TLV 緩衝區。

Android 參考資料。android.net.wifi.aware.WifiAwareManager.createTxtRecordTlvBuffer

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

適用於