public class GdxFIRApp extends PlatformDistributor<AppDistribution> implements AppDistribution
AppDistribution,
PlatformDistributorplatformObject| Modifier | Constructor and Description |
|---|---|
protected |
GdxFIRApp()
GdxFIRApp protected constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
configure()
Method needed only for ios initialization.
|
protected java.lang.String |
getAndroidClassName()
Gives class name of object that will be create when application running on android platform.
|
protected java.lang.String |
getIOSClassName()
Gives class name of object that will be create when application running on ios platform.
|
static GdxFIRApp |
instance() |
setMockObjectprotected GdxFIRApp()
throws PlatformDistributorException
Instance of this class should be getting by instance()
PlatformDistributorExceptionpublic static GdxFIRApp instance()
public void configure()
iOS requires manually firebase sdk initialization. So you should execute this method at same point of app initialization for ex:
class Application implements ApplicationAdapter{
public void create()
{
GdxFIRApp.configure();
}
}
On android platform initialization is doing by google play services plugin which load and parse google-services.json file,
but calling this method on android does not have any effect on application.configure in interface AppDistributionprotected java.lang.String getIOSClassName()
getIOSClassName in class PlatformDistributor<AppDistribution>protected java.lang.String getAndroidClassName()
getAndroidClassName in class PlatformDistributor<AppDistribution>