Sha256: 347c54e3d26cd157e2fc4f4e1612f6b80780a30e9e23d9d591247a388f8cccc3
Contents?: true
Size: 1.16 KB
Versions: 3
Compression:
Stored size: 1.16 KB
Contents
package com.motorolasolutions.rho.notification.led; import com.rhomobile.rhodes.Logger; import com.rhomobile.rhodes.RhodesActivity; import com.rhomobile.rhodes.extmanager.AbstractRhoListener; import com.rhomobile.rhodes.extmanager.IRhoExtManager; public class LedRhoListener extends AbstractRhoListener { private static String TAG = "LedRhoListener"; private static LedFactory factory; public static void registerListener(LedFactory inputFactory) { factory = inputFactory; } @Override public void onCreateApplication(IRhoExtManager extManager) { Logger.D(TAG, "LedFactoryRhoListener: onCreateApplication"); extManager.addRhoListener(this); } @Override public void onResume(RhodesActivity activity) { } @Override public void onPause(RhodesActivity activity) { Logger.D(TAG, "onPause"); if(factory != null) factory.onPause(); } @Override public void onStop(RhodesActivity activity) { Logger.D(TAG, "onStop"); if(factory != null) factory.onStop(); } @Override public void onDestroy(RhodesActivity activity) { Logger.D(TAG, "onDestroy"); if(factory != null) factory.onDestroy(); } }
Version data entries
3 entries across 3 versions & 1 rubygems