# ServiceSearch

    @objc open class ServiceSearch: NSObject, TVDataManagerProtocol

This class searches the local network for compatible multiscreen services

- `delegate`

  Set a delegate to receive search events.

  #### Declaration

  Swift

      open weak var delegate: ServiceSearchDelegate? = nil

- `isSearching`

  The search status

  #### Declaration

  Swift

      open var isSearching: Bool

- `getServices()`

  request for TV list found on Network/BLE.

  #### Declaration

  Swift

      open func getServices() -> [Service]

  #### Return Value

  returns TV List.

- `on(_:performClosure:)`

  A convenience method to suscribe for notifications using blocks

  #### Declaration

  Swift

      open func on(_ notificationName: String, performClosure:@escaping (Notification!) -> 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

- `off(_:)`

  A convenience method to unsuscribe from notifications

  #### Declaration

  Swift

      open func off(_ observer: AnyObject)

  #### Parameters

  `observer` | The observer object to unregister observations

- `start()`

  Start searching for devices

  #### Declaration

  Swift

      open func start()

- `start(_:)`

  Start searching for devices, overloaded function

  #### Declaration

  Swift

      open func start(_ showStandByTv : Bool = true)

  #### Parameters

  `showStandByTv` | false if Standby devices not to be shown

- `isSearchingBLE()`

  check bluetooth searching is on or off

  #### Declaration

  Swift

      open func isSearchingBLE() -> Bool

  #### Return Value

  true if bluetooth discovery on otherwise false

- `startUsingBLE()`

  Start BLE Search Process

  #### Declaration

  Swift

      open func startUsingBLE() -> Bool

  #### Return Value

  returns ‘True’ if using BLE otherwise ‘False’

- `stopUsingBLE()`

  Stop BLE Search Process

  #### Declaration

  Swift

      open func stopUsingBLE() -> Bool

  #### Return Value

  True

- `stop()`

  Stops the Device discovery.

  #### Declaration

  Swift

      open func stop()

- `getStandByMode()`

  Returns what status is set to StandbyMode.

  #### Declaration

  Swift

      open func getStandByMode() -> Bool

- `clearStandbyDevices()`

  Clear the standby devices from the DB

  #### Declaration

  Swift

      open func clearStandbyDevices()

  #### Parameters

  `None` | No parameter required