/***************************************************************************** * VLCNetworkServerBrowser-Protocol.h * VLC for iOS ***************************************************************************** * Copyright (c) 2015-2018 VideoLAN. All rights reserved. * $Id$ * * Authors: Tobias Conradi * * Refer to the COPYING file of the official project for license. *****************************************************************************/ #import NS_ASSUME_NONNULL_BEGIN @protocol VLCNetworkServerBrowserItem; @protocol VLCNetworkServerBrowserDelegate; @protocol VLCNetworkServerBrowser @required @property (nonatomic, weak) id delegate; @property (nonatomic, readonly, nullable) NSString *title; @property (nonatomic, readonly, copy) VLCMediaList *mediaList; @property (nonatomic, copy, readonly) NSArray> *items; - (void)update; @end @protocol VLCNetworkServerBrowserDelegate - (void) networkServerBrowserDidUpdate:(id)networkBrowser; - (void) networkServerBrowser:(id)networkBrowser requestDidFailWithError:(NSError *)error; @optional - (void)networkServerBrowserShouldPopView:(id)networkBrowser; - (void)networkServerBrowserEndParsing:(id)networkBrowser; @end @protocol VLCNetworkServerBrowserItem @required @property (nonatomic, readonly, getter=isContainer) BOOL container; // if item is container browser is the browser for the container @property (nonatomic, readonly, nullable) id containerBrowser; @property (nonatomic, readonly, nullable) VLCMedia *media; @property (nonatomic, readonly) NSString *name; @property (nonatomic, readonly, nullable) NSURL *URL; @property (nonatomic, readonly, nullable) NSNumber *fileSizeBytes; @optional @property (nonatomic, readonly, nullable) NSString *filename; @property (nonatomic, readonly, nullable) NSString *duration; @property (nonatomic, readonly, nullable) NSString *subtitleType; @property (nonatomic, readonly, nullable) NSURL *subtitleURL; @property (nonatomic, readonly, nullable) NSURL *thumbnailURL; @property (nonatomic, getter=isDownloadable, readonly) BOOL downloadable; @end NS_ASSUME_NONNULL_END