This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import SwiftUI | |
struct ContentView: View { | |
@EnvironmentObject var circleTimer: AirCircleTimerDemoViewModel | |
@State var showMenu: Bool = false | |
@ObservedObject var app: AppManager | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@RequiresApi(Build.VERSION_CODES.M) | |
@AndroidEntryPoint | |
class MainActivity : ComponentActivity() { | |
private val bluetoothManager by lazy { | |
applicationContext.getSystemService(BluetoothManager::class.java) | |
} | |
private val bluetoothAdapter by lazy { | |
bluetoothManager?.adapter | |
} |