195ac470f2bbea06114a64906d95c0da7d9412db0Dake Gu/* 295ac470f2bbea06114a64906d95c0da7d9412db0Dake Gu * Copyright (C) 2016 The Android Open Source Project 395ac470f2bbea06114a64906d95c0da7d9412db0Dake Gu * 495ac470f2bbea06114a64906d95c0da7d9412db0Dake Gu * Licensed under the Apache License, Version 2.0 (the "License"); 595ac470f2bbea06114a64906d95c0da7d9412db0Dake Gu * you may not use this file except in compliance with the License. 695ac470f2bbea06114a64906d95c0da7d9412db0Dake Gu * You may obtain a copy of the License at 795ac470f2bbea06114a64906d95c0da7d9412db0Dake Gu * 895ac470f2bbea06114a64906d95c0da7d9412db0Dake Gu * http://www.apache.org/licenses/LICENSE-2.0 995ac470f2bbea06114a64906d95c0da7d9412db0Dake Gu * 1095ac470f2bbea06114a64906d95c0da7d9412db0Dake Gu * Unless required by applicable law or agreed to in writing, software 1195ac470f2bbea06114a64906d95c0da7d9412db0Dake Gu * distributed under the License is distributed on an "AS IS" BASIS, 1295ac470f2bbea06114a64906d95c0da7d9412db0Dake Gu * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 1395ac470f2bbea06114a64906d95c0da7d9412db0Dake Gu * See the License for the specific language governing permissions and 1495ac470f2bbea06114a64906d95c0da7d9412db0Dake Gu * limitations under the License. 1595ac470f2bbea06114a64906d95c0da7d9412db0Dake Gu */ 1695ac470f2bbea06114a64906d95c0da7d9412db0Dake Gu 1795ac470f2bbea06114a64906d95c0da7d9412db0Dake Gupackage android.support.v17.leanback.media; 1895ac470f2bbea06114a64906d95c0da7d9412db0Dake Gu 1995ac470f2bbea06114a64906d95c0da7d9412db0Dake Guimport android.view.SurfaceHolder; 2095ac470f2bbea06114a64906d95c0da7d9412db0Dake Gu 2195ac470f2bbea06114a64906d95c0da7d9412db0Dake Gu/** 2295ac470f2bbea06114a64906d95c0da7d9412db0Dake Gu * Optional interface to be implemented by any subclass of {@link PlaybackGlueHost} that contains 2395ac470f2bbea06114a64906d95c0da7d9412db0Dake Gu * a {@link android.view.SurfaceView}. This will allow subclass of {@link PlaybackGlue} to setup 2495ac470f2bbea06114a64906d95c0da7d9412db0Dake Gu * the surface holder callback during {@link PlaybackGlue#setHost(PlaybackGlueHost)}. 2595ac470f2bbea06114a64906d95c0da7d9412db0Dake Gu * 2695ac470f2bbea06114a64906d95c0da7d9412db0Dake Gu * @see PlaybackGlue#setHost(PlaybackGlueHost) 2795ac470f2bbea06114a64906d95c0da7d9412db0Dake Gu */ 2895ac470f2bbea06114a64906d95c0da7d9412db0Dake Gupublic interface SurfaceHolderGlueHost { 2995ac470f2bbea06114a64906d95c0da7d9412db0Dake Gu /** 3095ac470f2bbea06114a64906d95c0da7d9412db0Dake Gu * Sets the {@link SurfaceHolder.Callback} on the the host. 3195ac470f2bbea06114a64906d95c0da7d9412db0Dake Gu */ 3295ac470f2bbea06114a64906d95c0da7d9412db0Dake Gu void setSurfaceHolderCallback(SurfaceHolder.Callback callback); 3395ac470f2bbea06114a64906d95c0da7d9412db0Dake Gu} 34