ID32v2TagBuilder

public class ID32v2TagBuilder : TagBuilder

Builder used to create a ID32v2 tag. It let the user set all the frames included in ID32TagCommonStringFramesBuilder, ID32TagCommonCompositeFramesBuilder and RecordingHourMinuteDayMonthYearFramesBuilder.

  • Init a ID32v2TagBuilder instance.

    Declaration

    Swift

    public init()
  • Set the title frame to be written by ID3TagEditor.

    Declaration

    Swift

    public func title(frame: ID3FrameWithStringContent) -> Self

    Parameters

    frame

    the title frame as a ID3FrameWithStringContent instance.

    Return Value

    the instance of the builder.

  • Set the album frame to be written by ID3TagEditor.

    Declaration

    Swift

    public func album(frame: ID3FrameWithStringContent) -> Self

    Parameters

    frame

    the album frame as a ID3FrameWithStringContent instance.

    Return Value

    the instance of the builder.

  • Set the albumArtist frame to be written by ID3TagEditor.

    Declaration

    Swift

    public func albumArtist(frame: ID3FrameWithStringContent) -> Self

    Parameters

    frame

    the albumArtist frame as a ID3FrameWithStringContent instance.

    Return Value

    the instance of the builder.

  • Set the artist frame to be written by ID3TagEditor.

    Declaration

    Swift

    public func artist(frame: ID3FrameWithStringContent) -> Self

    Parameters

    frame

    the artist frame as a ID3FrameWithStringContent instance.

    Return Value

    the instance of the builder.

  • Set the composer frame to be written by ID3TagEditor.

    Declaration

    Swift

    public func composer(frame: ID3FrameWithStringContent) -> Self

    Parameters

    frame

    the composer frame as a ID3FrameWithStringContent instance.

    Return Value

    the instance of the builder.

  • Set the conductor frame to be written by ID3TagEditor.

    Declaration

    Swift

    public func conductor(frame: ID3FrameWithStringContent) -> Self

    Parameters

    frame

    the conductor frame as a ID3FrameWithStringContent instance.

    Return Value

    the instance of the builder.

  • Set the content grouping frame to be written by ID3TagEditor.

    Declaration

    Swift

    public func contentGrouping(frame: ID3FrameWithStringContent) -> Self

    Parameters

    frame

    the contentGrouping frame as a ID3FrameWithStringContent instance.

    Return Value

    the instance of the builder.

  • Set the copyright frame to be written by ID3TagEditor.

    Declaration

    Swift

    public func copyright(frame: ID3FrameWithStringContent) -> Self

    Parameters

    frame

    the copyright frame as a ID3FrameWithStringContent instance.

    Return Value

    the instance of the builder.

  • Set the encoded by frame to be written by ID3TagEditor.

    Declaration

    Swift

    public func encodedBy(frame: ID3FrameWithStringContent) -> Self

    Parameters

    frame

    the encodedBy frame as a ID3FrameWithStringContent instance.

    Return Value

    the instance of the builder.

  • Set the encoder settings frame to be written by ID3TagEditor.

    Declaration

    Swift

    public func encoderSettings(frame: ID3FrameWithStringContent) -> Self

    Parameters

    frame

    the encoderSettings frame as a ID3FrameWithStringContent instance.

    Return Value

    the instance of the builder.

  • Set the lyricist frame to be written by ID3TagEditor.

    Declaration

    Swift

    public func lyricist(frame: ID3FrameWithStringContent) -> Self

    Parameters

    frame

    the lyricist frame as a ID3FrameWithStringContent instance.

    Return Value

    the instance of the builder.

  • Set the mix artist frame to be written by ID3TagEditor.

    Declaration

    Swift

    public func mixArtist(frame: ID3FrameWithStringContent) -> Self

    Parameters

    frame

    the mixArtist frame as a ID3FrameWithStringContent instance.

    Return Value

    the instance of the builder.

  • Set the publisher frame to be written by ID3TagEditor.

    Declaration

    Swift

    public func publisher(frame: ID3FrameWithStringContent) -> Self

    Parameters

    frame

    the publisher frame as a ID3FrameWithStringContent instance.

    Return Value

    the instance of the builder.

  • Set the subtitle frame to be written by ID3TagEditor.

    Declaration

    Swift

    public func subtitle(frame: ID3FrameWithStringContent) -> Self

    Parameters

    frame

    the subtitle frame as a ID3FrameWithStringContent instance.

    Return Value

    the instance of the builder.

  • Set the beats per minute frame to be written by ID3TagEditor.

    Declaration

    Swift

    public func beatsPerMinute(frame: ID3FrameWithIntegerContent) -> Self

    Parameters

    frame

    the beats per minute frame as a ID3FrameWithIntegerContent instance.

    Return Value

    the instance of the builder.

  • Set the original filename frame to be written by ID3TagEditor.

    Declaration

    Swift

    public func originalFilename(frame: ID3FrameWithStringContent) -> Self

    Parameters

    frame

    the original filename frame as a ID3FrameWithStringContent instance.

    Return Value

    the instance of the builder.

  • Set the length in milliseconds frame to be written by ID3TagEditor.

    Declaration

    Swift

    public func lengthInMilliseconds(frame: ID3FrameWithIntegerContent) -> Self

    Parameters

    frame

    the length in milliseconds frame as a ID3FrameWithIntegerContent instance.

    Return Value

    the instance of the builder.

  • Set the size in bytes frame to be written by ID3TagEditor.

    Declaration

    Swift

    public func sizeInBytes(frame: ID3FrameWithIntegerContent) -> Self

    Parameters

    frame

    the size in byes frame as a ID3FrameWithIntegerContent instance.

    Return Value

    the instance of the builder.

  • Set the genre frame to be written by ID3TagEditor.

    Declaration

    Swift

    public func genre(frame: ID3FrameGenre) -> Self

    Parameters

    frame

    the genre frame as a ID3FrameGenre instance.

    Return Value

    the instance of the builder.

  • Set the disc position frame to be written by ID3TagEditor.

    Declaration

    Swift

    public func discPosition(frame: ID3FramePartOfTotal) -> Self

    Parameters

    frame

    the discPosition frame as a ID3FramePartOfTotal instance.

    Return Value

    the instance of the builder.

  • Set the trackPosition frame to be written by ID3TagEditor.

    Declaration

    Swift

    public func trackPosition(frame: ID3FramePartOfTotal) -> Self

    Parameters

    frame

    the trackPosition frame as a ID3FramePartOfTotal instance.

    Return Value

    the instance of the builder.

  • Set an attached picture frame to be written by ID3TagEditor. You can set multiple attached picture frames per tag, one for each of the picture types contained in ID3PictureType.

    Declaration

    Swift

    public func attachedPicture(pictureType: ID3PictureType, frame: ID3FrameAttachedPicture) -> Self

    Parameters

    pictureType

    the ID3PictureType associated to the attachedPicture frame to be set.

    frame

    the attachedPicture frame as a ID3FrameAttachedPicture instance.

    Return Value

    the instance of the builder.

  • Set an unsynchronised lyrics frame to be written by ID3TagEditor. You can set multiple unsynchronised lyrics frames per tag, one for each of the languages contained in ID3FrameContentLanguage.

    Declaration

    Swift

    public func unsynchronisedLyrics(language: ID3FrameContentLanguage,
                                     frame: ID3FrameWithLocalizedContent) -> Self

    Parameters

    language

    the ID3FrameContentLanguage associated to the unsynchronisedLyrics frame to be set.

    frame

    the unsynchronisedLyrics frame as a ID3FrameWithLocalizedContent instance.

    Return Value

    the instance of the builder.

  • Set a comment frame to be written by ID3TagEditor. You can set multiple comment frames per tag, one for each of the languages contained in ID3FrameContentLanguage.

    Declaration

    Swift

    public func comment(language: ID3FrameContentLanguage,
                        frame: ID3FrameWithLocalizedContent) -> Self

    Parameters

    language

    the ID3FrameContentLanguage associated to the comment frame to be set.

    frame

    the comment frame as a ID3FrameWithLocalizedContent instance.

    Return Value

    the instance of the builder.

  • Set the recording day and month frame to be written by ID3TagEditor.

    Declaration

    Swift

    public func recordingDayMonth(frame: ID3FrameRecordingDayMonth) -> Self

    Parameters

    frame

    the recordingDayMonth frame as a ID3FrameWithStringContent instance.

    Return Value

    the instance of the builder.

  • Set the recording hour minute frame to be written by ID3TagEditor.

    Declaration

    Swift

    public func recordingHourMinute(frame: ID3FrameRecordingHourMinute) -> Self

    Parameters

    frame

    the recordingHourMinute frame as a ID3FrameWithStringContent instance.

    Return Value

    the instance of the builder.

  • Set the recording year frame to be written by ID3TagEditor.

    Declaration

    Swift

    public func recordingYear(frame: ID3FrameWithIntegerContent) -> Self

    Parameters

    frame

    the recordingYear frame as a ID3FrameWithStringContent instance.

    Return Value

    the instance of the builder.

  • Build and ID3Tag version 2.

    Declaration

    Swift

    public func build() -> ID3Tag

    Return Value

    an ID3Tag version 2 instance to use with the write function of ID3TagEditor.