public static extern PreboardError preboard_commit_stashbag(PreboardClientHandle client, PlistHandle manifest, PreboardStatusCallBack statusCallBack, System.IntPtr userData);
/// <summary> /// Instructs the preboard service to commit a previously created stashbag. /// The callback or following preboard_receive* invocations will usually /// receive a dictionary with: /// { StashbagCommitComplete: true } /// or in case of an error: /// { StashbagCommitComplete: 0, Error: 1, /// <optional /// > ErrorString: /// <error /// string> } /// </summary> /// <param name="client"> /// The preboard client to use for receiving /// </param> /// <param name="manifest"> /// An optional manifest /// </param> /// <param name="status_cb"> /// Callback function that will receive status and error messages /// Can be NULL if you want to handle receiving messages in your own code. /// </param> /// <param name="user_data"> /// User data for callback function or NULL. /// </param> /// <returns> /// PREBOARD_E_SUCCESS if the command was successfully submitted, /// PREBOARD_E_INVALID_ARG when client is invalid, /// or a PREBOARD_E_* error code on error. /// </returns> public virtual PreboardError preboard_commit_stashbag(PreboardClientHandle client, PlistHandle manifest, PreboardStatusCallBack statusCallBack, System.IntPtr userData) { return(PreboardNativeMethods.preboard_commit_stashbag(client, manifest, statusCallBack, userData)); }