blob: 5b49b8c47bc006f6ca3e145c0bc379f905cc336a [file] [log] [blame]
// Copyright 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
package org.chromium.chrome.browser.media.router;
/**
* An interface providing callbacks for {@link MediaRouteDialogManager}.
*/
public interface MediaRouteDialogDelegate {
/**
* Notifies the delegate if the user has chosen a {@link MediaSink} to connect to.
* onDialogDismissed() is not called in this case.
* @param sourceUrn The source the sink was selected for.
* @param sink The sink selected by the user.
*/
void onSinkSelected(String sourceUrn, MediaSink sink);
/**
* Notifies the delegate if the user has closed the existing route.
* @param mediaRouteId id of the media route that was closed.
*/
void onRouteClosed(String mediaRouteId);
/**
* Notifies the delegate if the dialog was dismissed without any user action.
*/
void onDialogCancelled();
}