E2eeContactKeysManager.UpdateOrInsertE2eeContactKey Method

Definition

Inserts a new entry into the end-to-end encryption contact keys table or updates one if it already exists.

[Android.Runtime.Register("updateOrInsertE2eeContactKey", "(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;[B)V", "", ApiSince=35)]
[Android.Runtime.RequiresPermission("android.permission.WRITE_CONTACTS")]
public void UpdateOrInsertE2eeContactKey(string lookupKey, string deviceId, string accountId, byte[] keyValue);
[<Android.Runtime.Register("updateOrInsertE2eeContactKey", "(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;[B)V", "", ApiSince=35)>]
[<Android.Runtime.RequiresPermission("android.permission.WRITE_CONTACTS")>]
member this.UpdateOrInsertE2eeContactKey : string * string * string * byte[] -> unit

Parameters

lookupKey
String

value that references the contact. This value cannot be null.

deviceId
String

an app-specified identifier for the device. This value cannot be null.

accountId
String

an app-specified identifier for the account. This value cannot be null.

keyValue
Byte[]

the raw bytes for the key (max size is getMaxKeySizeBytes() bytes). This value cannot be null.

Attributes

Remarks

Android reference for android.provider.E2eeContactKeysManager.updateOrInsertE2eeContactKey.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to