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

Version Path
rhodes-7.6.0 lib/commonAPI/indicators/ext/platform/android/src/com/rho/battery/BatteryFactory.java
rhodes-7.5.1 lib/commonAPI/indicators/ext/platform/android/src/com/rho/battery/BatteryFactory.java
rhodes-7.4.1 lib/commonAPI/indicators/ext/platform/android/src/com/rho/battery/BatteryFactory.java
rhodes-7.1.17 lib/commonAPI/indicators/ext/platform/android/src/com/rho/battery/BatteryFactory.java
rhodes-6.2.0 lib/commonAPI/indicators/ext/platform/android/src/com/rho/battery/BatteryFactory.java
rhodes-6.0.11 lib/commonAPI/indicators/ext/platform/android/src/com/rho/battery/BatteryFactory.java
rhodes-5.5.18 lib/commonAPI/indicators/ext/platform/android/src/com/rho/battery/BatteryFactory.java
rhodes-5.5.17 lib/commonAPI/indicators/ext/platform/android/src/com/rho/battery/BatteryFactory.java
rhodes-5.5.15 lib/commonAPI/indicators/ext/platform/android/src/com/rho/battery/BatteryFactory.java
rhodes-5.5.0.22 lib/commonAPI/indicators/ext/platform/android/src/com/rho/battery/BatteryFactory.java
rhodes-5.5.2 lib/commonAPI/indicators/ext/platform/android/src/com/rho/battery/BatteryFactory.java
rhodes-5.5.0.7 lib/commonAPI/indicators/ext/platform/android/src/com/rho/battery/BatteryFactory.java
rhodes-5.5.0.3 lib/commonAPI/indicators/ext/platform/android/src/com/rho/battery/BatteryFactory.java
rhodes-5.5.0 lib/commonAPI/indicators/ext/platform/android/src/com/rho/battery/BatteryFactory.java