1// CHECKSTYLE:OFF Generated code 2/* This file is auto-generated from VideoVideoFragmentGlueHost.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 */ 17package android.support.v17.leanback.app; 18 19import android.support.v17.leanback.media.PlaybackGlue; 20import android.support.v17.leanback.media.PlaybackGlueHost; 21import android.support.v17.leanback.media.SurfaceHolderGlueHost; 22import android.view.SurfaceHolder; 23 24/** 25 * {@link PlaybackGlueHost} implementation 26 * the interaction between {@link PlaybackGlue} and {@link VideoSupportFragment}. 27 */ 28public class VideoSupportFragmentGlueHost extends PlaybackSupportFragmentGlueHost 29 implements SurfaceHolderGlueHost { 30 private final VideoSupportFragment mFragment; 31 32 public VideoSupportFragmentGlueHost(VideoSupportFragment fragment) { 33 super(fragment); 34 this.mFragment = fragment; 35 } 36 37 /** 38 * Sets the {@link android.view.SurfaceHolder.Callback} on the host. 39 * {@link PlaybackGlueHost} is assumed to either host the {@link SurfaceHolder} or 40 * have a reference to the component hosting it for rendering the video. 41 */ 42 @Override 43 public void setSurfaceHolderCallback(SurfaceHolder.Callback callback) { 44 mFragment.setSurfaceHolderCallback(callback); 45 } 46 47} 48