Sha256: 1fe8ef5d4507709dac9e78c2d41017884ed5398a5c34edfd2fde71859960680d
Contents?: true
Size: 626 Bytes
Versions: 14
Compression:
Stored size: 626 Bytes
Contents
package com.rho.battery; import com.rho.battery.IBattery; import com.rho.battery.IBatteryFactory; import com.rho.battery.IBatterySingleton; import com.rhomobile.rhodes.Logger; public class BatteryFactory implements IBatteryFactory { protected static String TAG = "BatteryFactory"; private BatterySingleton singleton; @Override public IBatterySingleton getApiSingleton() { if(singleton == null) singleton = new BatterySingleton(this); return singleton; } @Override public IBattery getApiObject(String id) { Logger.D(TAG, "Battery extension does not use API objects. Use the singleton"); return null; } }
Version data entries
14 entries across 14 versions & 1 rubygems