Album

Version 1.7 - Updated on 12/15/2016

Contents

Introduction

public interface Album extends Item

Stores Album information.

getName

String getName()

  • Returns: Playlist name.

getUid

String getUid()

  • Returns: Playlist unique identifier.

getMimeType

String getMimeType()

  • Returns: Regex pattern for the Mime-Type for the files in the playlist.

getCreationDate

String getCreationDate()

  • Returns: Timestamp of the creation date of the playlist.

getLastModifiedDate

String getLastModifiedDate()

  • Returns: Timestamp for when the playlist has been modified last.

getType

String getType()

  • Returns: The type of the playlist.

getUri

String getUri()

  • Returns: Uri

getFiles

ItemList<File> getFiles(Context context, SortType sortType)

Retrieves a list of files that belongs to the specified Album. Each list item can be further type casted to Photo, Video, or Audio to access their specific attributes. This method makes an HTTP call and should not be called from the main thread. Throws Cloud API Exception with the error code USER_UNAUTHORIZED if the user is not authorized to perform this operation.

  • Parameters:
    • context — Context object
    • sortType — The sort type as defined in SortType, combined with sort order SortType#setOrder(SortType.SortOrder).
      • Examples:
        • SortType.NAME
        • SortType.NAME.setOrder(SortType.SortOrder.ASC)
        • Set to null for default order
  • Returns: ItemList populated with File as list item. This list contains the files stored in this album under user’s Personal Cloud Storage account. Call ItemList#close() when the list is no longer needed. Throws Cloud API Exception if the request cannot be processed.

Copyright © 2015-2017, Verizon and/or its Licensors. All rights reserved.