Class: LeanMotion::Config

Inherits:
Object
  • Object
show all
Defined in:
lib/lean_motion/config.rb

Class Method Summary collapse

Class Method Details

.channel(name) ⇒ Object



16
17
18
# File 'lib/lean_motion/config.rb', line 16

def self.channel(name)
  AVAnalytics.setChannel name
end

.init(app_id, app_key) ⇒ Object



4
5
6
7
8
9
10
11
12
13
14
# File 'lib/lean_motion/config.rb', line 4

def self.init(app_id, app_key)
  if app_id == "your_app_id" || app_key == "your_app_key"
    NSLog("=========== LeanMotion Error ==========")
    NSLog("LeanCloud App ID and App Key require")
    NSLog("=======================================")
    return
  end

  AVOSCloud.setApplicationId(app_id, clientKey:app_key)
  AVOSCloud.useAVCloudCN
end