CompanionDeviceManager.EnableSystemDataSyncForTypes Method

Definition

Enable system data sync (it only supports call metadata sync for now).

[Android.Runtime.Register("enableSystemDataSyncForTypes", "(II)V", "", ApiSince=34)]
public void EnableSystemDataSyncForTypes (int associationId, Android.Companion.SystemDataSyncFlags flags);
[<Android.Runtime.Register("enableSystemDataSyncForTypes", "(II)V", "", ApiSince=34)>]
member this.EnableSystemDataSyncForTypes : int * Android.Companion.SystemDataSyncFlags -> unit

Parameters

associationId
Int32

id of the device association.

flags
SystemDataSyncFlags

system data types to be enabled.

Attributes

Remarks

Enable system data sync (it only supports call metadata sync for now). By default all supported system data types are enabled.

Calling this API requires a uses-feature PackageManager#FEATURE_COMPANION_DEVICE_SETUP declaration in the manifest

Java documentation for android.companion.CompanionDeviceManager.enableSystemDataSyncForTypes(int, int).

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