\Google\Photos\Library\V1PhotosLibraryResourceFactory

Summary

Methods
Properties
Constants
album()
newMediaItem()
newMediaItemWithDescription()
albumPositionAfterMediaItem()
albumPositionAfterEnrichmentItem()
newEnrichmentItemWithText()
newEnrichmentItemWithLocation()
newEnrichmentItemWithMap()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Methods

album()

album(string  $title) : \Google\Photos\Library\V1\Album

Returns an {@link Album} with the title set to the given string.

Parameters

string $title

Returns

\Google\Photos\Library\V1\Album

newMediaItem()

newMediaItem(string  $uploadToken) : \Google\Photos\Library\V1\NewMediaItem

Returns a {@link NewMediaItem} containing a {@link SimpleMediaItem} with the given upload token.

Parameters

string $uploadToken

Returns

\Google\Photos\Library\V1\NewMediaItem

newMediaItemWithDescription()

newMediaItemWithDescription(string  $uploadToken, string  $description) : \Google\Photos\Library\V1\NewMediaItem

Returns a {@link NewMediaItem} with the given description and a {@link SimpleMediaItem} with the given upload token.

Parameters

string $uploadToken
string $description

Returns

\Google\Photos\Library\V1\NewMediaItem

albumPositionAfterMediaItem()

albumPositionAfterMediaItem(string  $mediaItemId) : \Google\Photos\Library\V1\AlbumPosition

Returns an {@link AlbumPosition} describing the position after the given media item.

Parameters

string $mediaItemId

Returns

\Google\Photos\Library\V1\AlbumPosition

albumPositionAfterEnrichmentItem()

albumPositionAfterEnrichmentItem(string  $enrichmentItemId) : \Google\Photos\Library\V1\AlbumPosition

Returns an {@link AlbumPosition} describing the position after the given enrichment item.

Parameters

string $enrichmentItemId

Returns

\Google\Photos\Library\V1\AlbumPosition

newEnrichmentItemWithText()

newEnrichmentItemWithText(string  $text) : \Google\Photos\Library\V1\NewEnrichmentItem

Returns a {@link NewEnrichmentItem} containing a {@link TextEnrichment} with the provided text.

Parameters

string $text

Returns

\Google\Photos\Library\V1\NewEnrichmentItem