Language

E2eeContactKeysManager.UpdateOrInsertE2eeSelfKey Method

Definition

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

[Android.Runtime.Register("updateOrInsertE2eeSelfKey", "(Ljava/lang/String;Ljava/lang/String;[B)Z", "", ApiSince=35)]
[Android.Runtime.RequiresPermission("android.permission.WRITE_CONTACTS")]
public bool UpdateOrInsertE2eeSelfKey(string deviceId, string accountId, byte[] keyValue);
[<Android.Runtime.Register("updateOrInsertE2eeSelfKey", "(Ljava/lang/String;Ljava/lang/String;[B)Z", "", ApiSince=35)>]
[<Android.Runtime.RequiresPermission("android.permission.WRITE_CONTACTS")>]
member this.UpdateOrInsertE2eeSelfKey : string * string * byte[] -> bool

Parameters

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.

Returns

true if the entry was added or updated, false otherwise.

Attributes

Remarks

Inserts a new entry into the end-to-end encryption self keys table or updates one if it already exists. Requires Manifest.permission.WRITE_CONTACTS

Android reference for android.provider.E2eeContactKeysManager.updateOrInsertE2eeSelfKey.

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