From 115060372060932bcbf35c8d34827ecd046fd7cf Mon Sep 17 00:00:00 2001 From: hank <hank.zhang@proficientcity.com> Date: Wed, 18 Apr 2018 15:33:51 +0800 Subject: [PATCH] [Update] WATwitterImpl (3.6.7) --- frameworks/TwitterKit.framework/Headers/TWTRTweetView.h | 42 +++++++++++++++++++++++++++++++++++++----- 1 files changed, 37 insertions(+), 5 deletions(-) diff --git a/frameworks/TwitterKit.framework/Headers/TWTRTweetView.h b/frameworks/TwitterKit.framework/Headers/TWTRTweetView.h index a3f3a61..3220d6b 100644 --- a/frameworks/TwitterKit.framework/Headers/TWTRTweetView.h +++ b/frameworks/TwitterKit.framework/Headers/TWTRTweetView.h @@ -1,8 +1,19 @@ -// -// TWTRTweetView.h -// -// Copyright (c) 2015 Twitter. All rights reserved. -// +/* + * Copyright (C) 2017 Twitter, Inc. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + */ #import <UIKit/UIKit.h> #import "TWTRTweetViewDelegate.h" @@ -65,6 +76,7 @@ - When the share button is tapped. - When the share action completes. - When the favorite action completes. + - When the video (if available) is paused or started to play. ## Usage in UITableView @@ -120,6 +132,12 @@ * Defaults to YES. */ @property (nonatomic) BOOL showBorder UI_APPEARANCE_SELECTOR; + +/** + * Set whether or not videos playing inline should be muted. + * Defaults to NO. + */ +@property (nonatomic) BOOL shouldPlayVideoMuted; /** * Set whether the action buttons (Favorite, Share) should be shown. When toggled, @@ -197,6 +215,20 @@ */ - (void)configureWithTweet:(nullable TWTRTweet *)tweet; +/** + * If the tweet contains playable media, calling this function will play the media. The media will also play if + * the user taps on the play button for the media. + */ +- (void)playVideo; + +/** + * If the tweet contains media that is currently playing, this function will pause the current video. + * + * If a TWTRTweetVideo is being added to a UICollectionView, implement the delegate collectionView:didEndDisplayingCell:forItemAtIndexPath: + * and call pauseVideo here so videos stop playing when the user scrolls off the screen. + */ +- (void)pauseVideo; + @end NS_ASSUME_NONNULL_END -- Gitblit v1.8.0