ContentResolver.StartSync(Uri, Bundle) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Caution
deprecated
Start an asynchronous sync operation.
[Android.Runtime.Register("startSync", "(Landroid/net/Uri;Landroid/os/Bundle;)V", "GetStartSync_Landroid_net_Uri_Landroid_os_Bundle_Handler")]
[System.Obsolete("deprecated")]
public virtual void StartSync (Android.Net.Uri? uri, Android.OS.Bundle? extras);
[<Android.Runtime.Register("startSync", "(Landroid/net/Uri;Landroid/os/Bundle;)V", "GetStartSync_Landroid_net_Uri_Landroid_os_Bundle_Handler")>]
[<System.Obsolete("deprecated")>]
abstract member StartSync : Android.Net.Uri * Android.OS.Bundle -> unit
override this.StartSync : Android.Net.Uri * Android.OS.Bundle -> unit
Parameters
- uri
- Uri
the uri of the provider to sync or null to sync all providers.
- extras
- Bundle
any extras to pass to the SyncAdapter.
- Attributes
Remarks
Start an asynchronous sync operation. If you want to monitor the progress of the sync you may register a SyncObserver. Only values of the following types may be used in the extras bundle: <ul> <li>Integer</li> <li>Long</li> <li>Boolean</li> <li>Float</li> <li>Double</li> <li>String</li> <li>Account</li> <li>null</li> </ul>
This member is deprecated. instead use #requestSync(android.accounts.Account, String, android.os.Bundle)
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.