1 // CHECKSTYLE:OFF Generated code 2 /* This file is auto-generated from VideoSupportFragmentGlueHost.java. DO NOT MODIFY. */ 3 4 /* 5 * Copyright (C) 2016 The Android Open Source Project 6 * 7 * Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except 8 * in compliance with the License. You may obtain a copy of the License at 9 * 10 * http://www.apache.org/licenses/LICENSE-2.0 11 * 12 * Unless required by applicable law or agreed to in writing, software distributed under the License 13 * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express 14 * or implied. See the License for the specific language governing permissions and limitations under 15 * the License. 16 */ 17 package androidx.leanback.app; 18 19 import android.view.SurfaceHolder; 20 21 import androidx.leanback.media.PlaybackGlue; 22 import androidx.leanback.media.PlaybackGlueHost; 23 import androidx.leanback.media.SurfaceHolderGlueHost; 24 25 /** 26 * {@link PlaybackGlueHost} implementation 27 * the interaction between {@link PlaybackGlue} and {@link VideoFragment}. 28 * @deprecated use {@link VideoSupportFragmentGlueHost} 29 */ 30 @Deprecated 31 public class VideoFragmentGlueHost extends PlaybackFragmentGlueHost 32 implements SurfaceHolderGlueHost { 33 private final VideoFragment mFragment; 34 35 public VideoFragmentGlueHost(VideoFragment fragment) { 36 super(fragment); 37 this.mFragment = fragment; 38 } 39 40 /** 41 * Sets the {@link android.view.SurfaceHolder.Callback} on the host. 42 * {@link PlaybackGlueHost} is assumed to either host the {@link SurfaceHolder} or 43 * have a reference to the component hosting it for rendering the video. 44 */ 45 @Override 46 public void setSurfaceHolderCallback(SurfaceHolder.Callback callback) { 47 mFragment.setSurfaceHolderCallback(callback); 48 } 49 50 } 51