ServiceSearch

@objc public class ServiceSearch: NSObject

This class searches the local network for compatible multiscreen services

  • Set a delegate to receive search events.

    Declaration

    Swift

    public weak var delegate: ServiceSearchDelegate? = nil
  • The search status

    Declaration

    Swift

    public var isSearching: Bool
  • request for TV list found on Network/BLE.

    Declaration

    Swift

    public func getServices() -> [Service]

    Return Value

    returns TV List.

  • A convenience method to suscribe for notifications using blocks

    Declaration

    Swift

    public func on(notificationName: String, performClosure:(NSNotification!) -> Void) -> AnyObject

    Parameters

    notificationName

    The name of the notification

    performClosure

    The notification block, this block will be executed in the main thread

    Return Value

    An observer handler for removing/unsubscribing the block from notifications

  • A convenience method to unsuscribe from notifications

    Declaration

    Swift

    public func off(observer: AnyObject)

    Parameters

    observer

    The observer object to unregister observations

  • Start discovering TV on Network/Bluetooth

    Declaration

    Swift

    public func start()
  • check bluetooth searching is on or off

    Declaration

    Swift

    public func isSearchingBLE() -> Bool

    Return Value

    true if bluetooth discovery on otherwise false

  • Start BLE Search Process

    Declaration

    Swift

    public func startUsingBLE() -> Bool

    Return Value

    returns ‘True’ if using BLE otherwise ‘False’

  • Stop BLE Search Process

    Declaration

    Swift

    public func stopUsingBLE() -> Bool

    Return Value

    True

  • Stops the Device discovery.

    Declaration

    Swift

    public func stop()