Example #1
0
 /// <summary>
 /// Activates the device. Only works within an open session.
 /// The ActivationRecord plist dictionary must be obtained using the
 /// activation protocol requesting from Apple's https webservice.
 /// </summary>
 /// <param name="client">
 /// The lockdown client
 /// </param>
 /// <param name="activation_record">
 /// The activation record plist dictionary
 /// </param>
 /// <returns>
 /// LOCKDOWN_E_SUCCESS on success, LOCKDOWN_E_INVALID_ARG when client or
 /// activation_record is NULL, LOCKDOWN_E_NO_RUNNING_SESSION if no session is
 /// open, LOCKDOWN_E_PLIST_ERROR if the received plist is broken,
 /// LOCKDOWN_E_ACTIVATION_FAILED if the activation failed,
 /// LOCKDOWN_E_INVALID_ACTIVATION_RECORD if the device reports that the
 /// activation_record is invalid
 /// </returns>
 public virtual LockdownError lockdownd_activate(LockdownClientHandle client, PlistHandle activationRecord)
 {
     return(LockdownNativeMethods.lockdownd_activate(client, activationRecord));
 }