blob: fe0860bfd9f17aebb2d1d5f85abcd9cf6df29d48 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
|
//
// BG1Controller.h
// iHealthBG
//
// Created by xujianbo on 14-10-08.
// Copyright (c) 2014年 andon. All rights reserved.
//
#import <Foundation/Foundation.h>
@class BG1;
/**
BG1Controller
*/
@interface BG1Controller : NSObject
/**
* Initialization for BG1Controller Instance.
*/
+(BG1Controller *)shareBG1Controller;
/**
* Initialization for BG1 (connected BG via sound jack)
* When the application detects a headphone device, it sends a notification named kNotificationNameAudioDeviceInsert. When you receive kNotificationNameAudioDeviceInsert notification, you need to adjust the system volume to its maximum. After the device is disconnected, you receive a notification with the name kNotificationNameBG1DidDisConnect.
*/
-(void)initBGAudioModule;
/**
* Get current BG1 Instance
* The methold needs to be called when the BG1 has been triggered.
*/
-(BG1 *)getCurrentBG1Instance;
/**
* Stop audio module for BG1 (connected BG via sound jack)
* Call this method When the app need stop BG1 communication.
After call this method ,the app should set BG1 Disconnected status.
*/
-(void)stopBGAudioModule;
@end
|