| | |
| | | // |
| | | // 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" |
| | |
| | | - 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 |
| | | |
| | |
| | | * 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, |
| | |
| | | */ |
| | | - (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 |