Exemplo n.º 1
0
 /// <summary>
 /// Request that a backup should be restored to the connected device.
 /// </summary>
 /// <param name="client">
 /// The connected MobileBackup client to use.
 /// </param>
 /// <param name="backup_manifest">
 /// The backup manifest, a plist_t of type PLIST_DICT
 /// containing the backup state to be restored.
 /// </param>
 /// <param name="flags">
 /// Flags to send with the request. Currently this is a combination
 /// of the following mobilebackup_flags_t:
 /// MB_RESTORE_NOTIFY_SPRINGBOARD - let SpringBoard show a 'Restore' screen
 /// MB_RESTORE_PRESERVE_SETTINGS - do not overwrite any settings
 /// MB_RESTORE_PRESERVE_CAMERA_ROLL - preserve the photos of the camera roll
 /// </param>
 /// <param name="proto_version">
 /// A string denoting the version of the backup protocol
 /// to use. Latest known version is "1.6". Ideally this value should be
 /// extracted from the given manifest plist.
 /// </param>
 /// <returns>
 /// MOBILEBACKUP_E_SUCCESS on success, MOBILEBACKUP_E_INVALID_ARG if
 /// one of the parameters is invalid, MOBILEBACKUP_E_PLIST_ERROR if
 /// backup_manifest is not of type PLIST_DICT, MOBILEBACKUP_E_MUX_ERROR
 /// if a communication error occurs, or MOBILEBACKUP_E_REPLY_NOT_OK
 /// if the device did not accept the request.
 /// </returns>
 public virtual MobileBackupError mobilebackup_request_restore(MobileBackupClientHandle client, PlistHandle backupManifest, MobileBackupFlags flags, string protoVersion)
 {
     return(MobileBackupNativeMethods.mobilebackup_request_restore(client, backupManifest, flags, protoVersion));
 }
 public static extern MobileBackupError mobilebackup_request_restore(MobileBackupClientHandle client, PlistHandle backupManifest, MobileBackupFlags flags, [System.Runtime.InteropServices.MarshalAsAttribute(System.Runtime.InteropServices.UnmanagedType.LPStr)] string protoVersion);