CompanionDeviceManager.DisableSystemDataSyncForTypes Method

Definition

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

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

Parameters

associationId
Int32

id of the device association.

flags
SystemDataSyncFlags

system data types to be disabled.

Attributes

Remarks

Disable 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.disableSystemDataSyncForTypes(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