123456789101112131415161718192021222324252627 |
- //
- // SBTNotifictionDeviceContect.swift
- // SolarBT
- //
- // Created by weclouds on 2019/6/26.
- // Copyright © 2019 weclouds. All rights reserved.
- //
- import UIKit
- class SBTNotifictionDeviceContect: NSObject {
- }
- extension UIViewController{
-
-
- func checkTheBlueToothWasActivity() {
- NotificationCenter.default.addObserver(self, selector: #selector(m_showAlert), name: NSNotification.Name(kBabyBluetoothNotificationDeviceWasDisconect), object: nil)
- }
-
- @objc func m_showAlert(notif: Notification) {
- let dict = notif.userInfo as! [String:String]
- let periName = dict["peripheral"]
- g_showHUD( periName! + "The_Bluetooth_has_been_disconnected".da_localizedStr())
- }
- }
|