Genre

Version 1.4 - Updated on 9/23/2016

Contents

Introduction

public interface Genre extends Item

Stores music genre information.

getName

String getName()

Retrieves genre name.

  • Returns: Genre name

getFiles

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

Retrieves music files of specified genre. 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). Pass null for default order.

  • Returns: ItemList populated with Audio as list item. This list contains all audio files of specified genre stored under user’s Personal Cloud Storage account. 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.