serialize_publishables


Description:

public abstract ProgressCallback? serialize_publishables (int content_major_axis, bool strip_metadata =false)

Writes all of the publishable media items that the user has selected for upload to the remote service to a temporary directory on a local disk.

You should call this method immediately before sending the publishable media items to the remote service over the network. Because serializing several megabytes of data is a potentially lengthy operation, calling this method installs an activity status pane in the on- screen publishing dialog box. The activity status pane displays a progress bar along with a string of informational text.

Because sending items over the network to the remote service is also a potentially lengthy operation, you should leave the activity status pane installed in the on-screen publishing dialog box until this task is finished. Periodically during the sending process, you should report to the user on the progress of his or her upload. You can do this by invoking the returned ProgressCallback delegate.

After calling this method, the activity status pane that this method installs remains displayed in the on-screen publishing dialog box until you install a new pane.

Parameters:

content_major_axis when serializing publishable media items that are photos, ensure that neither the width nor the height of the serialized photo is greater than content_major_axis pixels. The value of this parameter has no effect on video publishables.
strip_metadata when serializing publishable media items that are photos, if strip_metadata is true, all EXIF, IPTC, and XMP metadata will be removed from the serialized file. If strip_metadata is false, all metadata will be left intact. The value of this parameter has no effect on video publishables.