authorName
TypeScriptget authorName(): stringSwift declarationlet authorName: StringThe author of the book.
struct · iOS 27.0+ · SDK 27.1
struct BookContentContent representing an audiobook or book being read aloud. Use this type for audiobooks and other spoken-word book content.
get authorName(): stringSwift declarationlet authorName: StringThe author of the book.
get isExplicit(): (boolean) | nullSwift declarationvar isExplicit: Bool?A Boolean value that indicates whether this content is explicit.
set isExplicit(value: (boolean) | null)Swift declarationvar isExplicit: Bool?A Boolean value that indicates whether this content is explicit.
get narratorName(): (string) | nullSwift declarationlet narratorName: String?The narrator of the audiobook, if applicable.
get animatedArtwork(): (AnimatedArtwork) | nullSwift declarationlet animatedArtwork: AnimatedArtwork?Animated artwork for this content.
get isExcludedFromSuggestions(): (boolean) | nullSwift declarationvar isExcludedFromSuggestions: Bool?A Boolean value that indicates whether to exclude this content from media suggestions. Defaults to `false`.
set isExcludedFromSuggestions(value: (boolean) | null)Swift declarationvar isExcludedFromSuggestions: Bool?A Boolean value that indicates whether to exclude this content from media suggestions. Defaults to `false`.
static initIdTitleAuthorNameNarratorNameTypeDurationArtworkAnimatedArtwork(id: string, title: string, authorName: string, narratorName: (string) | null, type: MediaType, duration: (MediaDuration) | null, artwork: Artwork, animatedArtwork?: (AnimatedArtwork) | null): BookContentSwift declarationinit(id: String, title: String, authorName: String, narratorName: String? = nil, type: MediaType = .audio, duration: MediaDuration?, artwork: Artwork, animatedArtwork: AnimatedArtwork?)Creates audiobook content with static and animated artwork. - Parameters: - id: A unique identifier for this book. - title: The book's display title. - authorName: The name of the book's author. - narratorName: The name of the audiobook narrator, if available. - type: The media type. Defaults to `.audio` for spoken-word content. - duration: The total duration of the audiobook, or `nil` when unknown. - artwork: Static cover artwork. - animatedArtwork: Animated artwork for the book, or `nil` when unavailable.
static initIdTitleAuthorNameNarratorNameTypeDurationArtwork(id: string, title: string, authorName: string, narratorName?: (string) | null, type?: MediaType, duration?: (MediaDuration) | null, artwork?: (Artwork) | null): BookContentSwift declarationinit(id: String, title: String, authorName: String, narratorName: String? = nil, type: MediaType = .audio, duration: MediaDuration?, artwork: Artwork?)Creates audiobook content. - Parameters: - id: A unique identifier for this book. - title: The book's display title. - authorName: The name of the book's author. - narratorName: The name of the audiobook narrator, if available. - type: The media type. Defaults to `.audio` for spoken-word content. - duration: The total duration of the audiobook, or `nil` when unknown. - artwork: Cover artwork, or `nil` when unavailable.
get id(): stringSwift declarationlet id: StringThe unique identifier for this content.
get type(): MediaTypeSwift declarationlet type: MediaTypeThe media type. Defaults to `.audio` for book content.
get genre(): (string) | nullSwift declarationvar genre: String?The genre of this content.
set genre(value: (string) | null)Swift declarationvar genre: String?The genre of this content.
get title(): stringSwift declarationlet title: StringThe title of the book.
get artwork(): (Artwork) | nullSwift declarationlet artwork: Artwork?Artwork for this content.
get chapter(): ({ "current": number; "total": number }) | nullSwift declarationvar chapter: (current: Int, total: Int)?The current chapter information, if applicable.
set chapter(value: ({ "current": number; "total": number }) | null)Swift declarationvar chapter: (current: Int, total: Int)?The current chapter information, if applicable.
get duration(): (MediaDuration) | nullSwift declarationlet duration: MediaDuration?The duration of this content.
No declarations were skipped in this snapshot.