Blame view

HDFwear/3rd/Mediatek/VolumeController.h 753 Bytes
75d24c15   yangbin   123
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
  //
  //  VolumeController.h
  //  Mediatek SmartDevice
  //
  //  Created by user on 14-9-1.
  //  Copyright (c) 2014 Mediatek. All rights reserved.
  //
  
  #import <Foundation/Foundation.h>
  #import <CoreBluetooth/CoreBluetooth.h>
  #import <MediaPlayer/MediaPlayer.h>
  
  extern NSString *const kVolumeControlServiceUUID;
  extern NSString *const kVolumeControlCharacteristicUUID;
  
  @interface VolumeController : NSObject
  
  + (id) getVolumeContorllerInstance: (CBPeripheralManager *)peripheralManagerInit;
  - (void) addService;
  - (void) volumeControl: (int8_t)cmd;
  //-(void)removeService;
  
  @property (nonatomic) BOOL isConnected;
  @property (nonatomic) CBPeripheralManager *peripheralManager;
  @property (nonatomic) CBMutableCharacteristic *volumeControlCharacteristic;
  @end