MediaBrowser

public class MediaBrowser: UIViewController, UIScrollViewDelegate, UIActionSheetDelegate

MediaBrwoser is based in UIViewController, UIScrollViewDelegate and UIActionSheetDelegate. So you can push, or make modal.

  • UINavigationBar Translucent for MediaBrowser

    Declaration

    Swift

    public var navigationBarTranslucent = true
  • UINavigationBar Text Color for MediaBrowser

    Declaration

    Swift

    public var navigationBarTextColor = UIColor.white
  • UINavigationBar Background Color for MediaBrowser

    Declaration

    Swift

    public var navigationBarBackgroundColor = UIColor.black
  • UINavigationBar Tint Color for MediaBrowser

    Declaration

    Swift

    public var navigationBarTintColor = UIColor.black.withAlphaComponent(0.5)
  • UIStatusBarStyle for MediaBrowser

    Declaration

    Swift

    public var statusBarStyle: UIStatusBarStyle = .lightContent
  • UIToolBar Text Color for MediaBrowser

    Declaration

    Swift

    public var toolbarTextColor = UIColor.white
  • UIToolBar Tint Color for MediaBrowser

    Declaration

    Swift

    public var toolbarBarTintColor = UIColor.black.withAlphaComponent(0.5)
  • UIToolBar Tint Background for MediaBrowser

    Declaration

    Swift

    public var toolbarBackgroundColor = UIColor.black
  • MediaBrowser has belonged to viewcontroller

    Declaration

    Swift

    public var hasBelongedToViewController = false
  • Check viewcontroller based status bar apperance

    Declaration

    Swift

    public var isVCBasedStatusBarAppearance = false
  • Hide or show status bar

    Declaration

    Swift

    public var statusBarShouldBeHidden = false
  • Display action button (share)

    Declaration

    Swift

    public var displayActionButton = true
  • Make status bar not hide

    Declaration

    Swift

    public var leaveStatusBarAlone = false
  • Perform layout

    Declaration

    Swift

    public var performingLayout = false
  • Support rotating

    Declaration

    Swift

    public var rotating = false
  • Active as in it’s in the view heirarchy

    Declaration

    Swift

    public var viewIsActive = false
  • Save previous status bar style to return when push

    Declaration

    Swift

    public var didSavePreviousStateOfNavBar = false
  • Stop specific layout being triggered

    Declaration

    Swift

    public var skipNextPagingScrollViewPositioning = false
  • View has appeared initially

    Declaration

    Swift

    public var viewHasAppearedInitially = false
  • Make current grid offset

    Declaration

    Swift

    public var currentGridContentOffset = CGPoint(x: 0, y: CGFloat.greatestFiniteMagnitude)
  • Set MediaBrowserDelegate for MediaBrowser

    Declaration

    Swift

    public var delegate: MediaBrowserDelegate?
  • Available zoom photos to fill

    Declaration

    Swift

    public var zoomPhotosToFill = true
  • Display Media Navigation Arrows

    Declaration

    Swift

    public var displayMediaNavigationArrows = false
  • Display selection buttons

    Declaration

    Swift

    public var displaySelectionButtons = false
  • Always show controls

    Declaration

    Swift

    public var alwaysShowControls = false
  • Enable grid

    Declaration

    Swift

    public var enableGrid = true
  • Enable swipe to dismiss

    Declaration

    Swift

    public var enableSwipeToDismiss = true
  • Start on Grid

    Declaration

    Swift

    public var startOnGrid = false
  • Auto play video on appear

    Declaration

    Swift

    public var autoPlayOnAppear = false
  • Hide control when MediaBrowser start

    Declaration

    Swift

    public var hideControlsOnStartup = false
  • Hide time inerval

    Declaration

    Swift

    public var delayToHideElements = TimeInterval(5.0)
  • Captionview alpha

    Declaration

    Swift

    public var captionAlpha = CGFloat(1)
  • Toolbar alpha

    Declaration

    Swift

    public var toolbarAlpha = CGFloat(1)
  • Loading Indicator Inner Ring Color

    Declaration

    Swift

    public var loadingIndicatorInnerRingColor = UIColor.white
  • Loading Indicator Outer Ring Color

    Declaration

    Swift

    public var loadingIndicatorOuterRingColor = UIColor.gray
  • Loading Indicator Inner Ring Width

    Declaration

    Swift

    public var loadingIndicatorInnerRingWidth:CGFloat = 1.0
  • Loading Indicator Outer Ring Width

    Declaration

    Swift

    public var loadingIndicatorOuterRingWidth:CGFloat = 1.0
  • Loading Indicator Font

    Declaration

    Swift

    public var loadingIndicatorFont = UIFont.systemFont(ofSize: 10)
  • Loading Indicator Font Color

    Declaration

    Swift

    public var loadingIndicatorFontColor = UIColor.white
  • Loading Indicator Show or hide text

    Declaration

    Swift

    public var loadingIndicatorShouldShowValueText = true
  • Media selected on icon

    Declaration

    Swift

    public var mediaSelectedOnIcon: UIImage?
  • Media selected off icon

    Declaration

    Swift

    public var mediaSelectedOffIcon: UIImage?
  • Media selected grid on icon

    Declaration

    Swift

    public var mediaSelectedGridOnIcon: UIImage?
  • Media selected grid off icon

    Declaration

    Swift

    public var mediaSelectedGridOffIcon: UIImage?
  • Caching image count both side (e.g. when index 1, caching 0 and 2)

    Declaration

    Swift

    public var cachingImageCount = 1
  • init with delegate

    Declaration

    Swift

    public override init(nibName: String?, bundle nibBundle: Bundle?)

    Parameters

    nibName

    nibName

    nibBundle

    nibBundle

  • init with delegate

    Declaration

    Swift

    public convenience init(delegate: MediaBrowserDelegate)

    Parameters

    delegate

    MediaBrowserDelegate

  • init with media

    Declaration

    Swift

    public convenience init(media: [Media])

    Parameters

    media

    Media array

  • init with coder

    Declaration

    Swift

    public required init?(coder: NSCoder)

    Parameters

    coder

    coder

  • didReceiveMemoryWarning

    Declaration

    Swift

    public override func didReceiveMemoryWarning()
  • Implement viewDidLoad to do additional setup after loading the view, typically from a nib.

    Declaration

    Swift

    public override func viewDidLoad()
  • view will transition

    Declaration

    Swift

    public override func viewWillTransition(to size: CGSize, with coordinator: UIViewControllerTransitionCoordinator)

    Parameters

    size

    size

    coordinator

    UIViewControllerTransitionCoordinator

  • viewWillAppear

    Declaration

    Swift

    public override func viewWillAppear(_ animated: Bool)

    Parameters

    animated

    Bool

  • view Did Appear

    Declaration

    Swift

    public override func viewDidAppear(_ animated: Bool)

    Parameters

    animated

    Bool

  • view will disappear

    Declaration

    Swift

    public override func viewWillDisappear(_ animated: Bool)

    Parameters

    animated

    Bool

  • will move toParentViewController

    Declaration

    Swift

    public override func willMove(toParentViewController parent: UIViewController?)

    Parameters

    parent

    UIViewController

  • did move toParentViewController

    Declaration

    Swift

    public override func didMove(toParentViewController parent: UIViewController?)

    Parameters

    parent

    UIViewController

  • supported interface orientations

    Declaration

    Swift

    public override var supportedInterfaceOrientations: UIInterfaceOrientationMask
  • will rotate to interfaceOrientation

    Declaration

    Swift

    public override func willRotate(to toInterfaceOrientation: UIInterfaceOrientation, duration: TimeInterval)
  • will animate rotation

    Declaration

    Swift

    public override func willAnimateRotation(to toInterfaceOrientation: UIInterfaceOrientation, duration: TimeInterval)
  • did rotate

    Declaration

    Swift

    public override func didRotate(from fromInterfaceOrientation: UIInterfaceOrientation)
  • UIScrollViewDelegate - scrollViewDidScroll

    Declaration

    Swift

    public func scrollViewDidScroll(_ scrollView: UIScrollView)
  • UIScrollViewDelegate - scrollViewWillBeginDragging

    Declaration

    Swift

    public func scrollViewWillBeginDragging(_ scrollView: UIScrollView)
  • UIScrollViewDelegate - scrollViewDidEndDecelerating

    Declaration

    Swift

    public func scrollViewDidEndDecelerating(_ scrollView: UIScrollView)
  • prefersStatusBarHidden

    Declaration

    Swift

    public override var prefersStatusBarHidden: Bool
  • preferredStatusBarUpdateAnimation

    Declaration

    Swift

    public override var preferredStatusBarUpdateAnimation: UIStatusBarAnimation