Inherits from NSObject
Conforms to TWTRTimelineDataSource
Declared in TWTRCollectionTimelineDataSource.h

Properties

collectionID

ID of the collection.

@property (nonatomic, copy, readonly) NSString *collectionID

Declared In

TWTRCollectionTimelineDataSource.h

maxTweetsPerRequest

The number of Tweets to request in each query to the Twitter Timeline API when fetching the next batch of Tweets.

@property (nonatomic, readonly) NSInteger maxTweetsPerRequest

Declared In

TWTRCollectionTimelineDataSource.h

timelineFilter

@property (nonatomic, copy, nullable) TWTRTimelineFilter *timelineFilter

Instance Methods

init

- (instancetype)init

initWithCollectionID:APIClient:

Convenience initializer.

- (instancetype)initWithCollectionID:(NSString *)collectionID APIClient:(TWTRAPIClient *)client

Parameters

collectionID

(required) The ID of this collection. For example, the ID of this collection: https://twitter.com/TwitterMusic/timelines/393773266801659904 is @“393773266801659904”

Return Value

An instance of TWTRCollectionTimelineDataSource or nil if any of the required parameters is missing.

Declared In

TWTRCollectionTimelineDataSource.h

initWithCollectionID:APIClient:maxTweetsPerRequest:

Designated initializer setting all supported values for Collection Timeline Data Source.

- (instancetype)initWithCollectionID:(NSString *)collectionID APIClient:(TWTRAPIClient *)client maxTweetsPerRequest:(NSUInteger)maxTweetsPerRequest

Parameters

collectionID

(required) The Collection ID value. e.g. @“393773266801659904”

client

(required) The API client to use for all network requests.

maxTweetsPerRequest

(optional) Number of Tweets to request per batch. A value of 0 uses the server default.

Return Value

An instance of TWTRCollectionTimelineDataSource or nil if any of the required parameters are missing.

Declared In

TWTRCollectionTimelineDataSource.h