/*******************************************************************************
 * ADOBE CONFIDENTIAL
 *  ___________________
 *
 *  Copyright 2014 Adobe Systems Incorporated
 *  All Rights Reserved.
 *
 *  NOTICE:  All information contained herein is, and remains
 *  the property of Adobe Systems Incorporated and its suppliers,
 *  if any.  The intellectual and technical concepts contained
 *  herein are proprietary to Adobe Systems Incorporated and its
 *  suppliers and are protected by trade secret or copyright law.
 *  Dissemination of this information or reproduction of this material
 *  is strictly forbidden unless prior written permission is obtained
 *  from Adobe Systems Incorporated.
 ******************************************************************************/

package com.adobe.primetime.reference.ui.entitlement;

/**
 * Callbacks for the MVPD picker fragments to communicate with the container activity.
 */
public interface IMvpdPickerClickListener
{
    /**
     * Handle an item selection from the MVPD picker fragment. The selected item
     * is returned to the calling activity while this activity is finished.
     *
     * @param item The item selected
     */
    public void handleItemSelection(Object item);

    /**
     * Handle a view change from the MVPD picker fragment. Detaches the current fragment in view
     * and attaches a fragment for the {@code newView}. If a fragment which implements the {@code newView}
     * doesn't exist, a new instance is created and attached to this activitiy's view.
     *
     * @param newView The new view type for the fragment
     */
    public void handleViewChange(MvpdPickerFragment.ViewType newView);

}
