BackupManager.DataChanged 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.
Overloads
DataChanged() |
Notifies the Android backup system that your application wishes to back up new changes to its data. |
DataChanged(String) |
Convenience method for callers who need to indicate that some other package needs a backup pass. |
DataChanged()
Notifies the Android backup system that your application wishes to back up new changes to its data.
[Android.Runtime.Register("dataChanged", "()V", "GetDataChangedHandler")]
public virtual void DataChanged ();
[<Android.Runtime.Register("dataChanged", "()V", "GetDataChangedHandler")>]
abstract member DataChanged : unit -> unit
override this.DataChanged : unit -> unit
- Attributes
Remarks
Notifies the Android backup system that your application wishes to back up new changes to its data. A backup operation using your application's android.app.backup.BackupAgent
subclass will be scheduled when you call this method.
Note: This only works if your application is performing Key/Value backups.
Java documentation for android.app.backup.BackupManager.dataChanged()
.
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
DataChanged(String)
Convenience method for callers who need to indicate that some other package needs a backup pass.
[Android.Runtime.Register("dataChanged", "(Ljava/lang/String;)V", "")]
public static void DataChanged (string? packageName);
[<Android.Runtime.Register("dataChanged", "(Ljava/lang/String;)V", "")>]
static member DataChanged : string -> unit
Parameters
- packageName
- String
The package name identifying the application to back up. <p> Note: Only works for packages performing Key/Value backups.
- Attributes
Remarks
Convenience method for callers who need to indicate that some other package needs a backup pass. This can be useful in the case of groups of packages that share a uid.
This method requires that the application hold the "android.permission.BACKUP" permission if the package named in the argument does not run under the same uid as the caller.
Java documentation for android.app.backup.BackupManager.dataChanged(java.lang.String)
.
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.