Class POBInstanceProvider
-
- All Implemented Interfaces:
public class POBInstanceProviderPMInstanceProvider class to share the singleton instance of classes throughout the app.
-
-
Field Summary
Fields Modifier and Type Field Description public static volatile POBSDKConfigsdkConfig
-
Constructor Summary
Constructors Constructor Description POBInstanceProvider()
-
Method Summary
Modifier and Type Method Description static POBSDKConfiggetSdkConfig()static POBCrashAnalysinggetCrashAnalytics()Method to get singleton instance of POBCrashAnalysing class. static POBDeviceInfogetDeviceInfo(@NonNull() Context context)Method to get singleton instance of PMDeviceInfo class static POBAppInfogetAppInfo(@NonNull() Context context)Method to get singleton instance of PMAppInfo class static POBLocationDetectorgetLocationDetector(@NonNull() Context context)Method to get singleton instance of POBLocationDetector and setting configured interval time static POBCacheManagergetCacheManager(@NonNull() Context context)Method to get singleton instance of POBLocationDetector and setting configured interval time static POBNetworkHandlergetNetworkHandler(@NonNull() Context context)static POBTrackerHandlergetTrackerHandler(@NonNull() POBNetworkHandler networkHandler)To get singleton instance of tracker handler class static POBNetworkMonitorgetNetworkMonitor(@NonNull() Context appContext)Method to get singleton instance of POBNetworkMonitor static POBAdViewCacheServicegetAdViewCacheService()Method to get singleton instance of POBAdViewCacheService class static POBAppSessionHandlergetApplicationSessionHandler(@NonNull() Application application)Method to get singleton instance of POBAppSessionHandler static POBImpDepthHandlinggetImpDepthHandler(@NonNull() POBAppSessionHandler sessionHandler)Method to get singleton instance of POBImpDepthHandler -
-
Method Detail
-
getSdkConfig
@NonNull() static POBSDKConfig getSdkConfig()
-
getCrashAnalytics
@Nullable() static POBCrashAnalysing getCrashAnalytics()
Method to get singleton instance of POBCrashAnalysing class. It uses reflection to get the singleton instance of POBCrashAnalytics.
- Returns:
Instance of POBCrashAnalysing
-
getDeviceInfo
@NonNull() static POBDeviceInfo getDeviceInfo(@NonNull() Context context)
Method to get singleton instance of PMDeviceInfo class
- Parameters:
context- Application context- Returns:
instance of PMDeviceInfo
-
getAppInfo
@NonNull() static POBAppInfo getAppInfo(@NonNull() Context context)
Method to get singleton instance of PMAppInfo class
- Parameters:
context- Application context- Returns:
instance of PMAppInfo
-
getLocationDetector
@NonNull() static POBLocationDetector getLocationDetector(@NonNull() Context context)
Method to get singleton instance of POBLocationDetector and setting configured interval time
- Parameters:
context- android application context- Returns:
instance of POBLocationDetector
-
getCacheManager
@NonNull() static POBCacheManager getCacheManager(@NonNull() Context context)
Method to get singleton instance of POBLocationDetector and setting configured interval time
- Returns:
instance of POBLocationDetector
-
getNetworkHandler
@NonNull() static POBNetworkHandler getNetworkHandler(@NonNull() Context context)
-
getTrackerHandler
@NonNull() static POBTrackerHandler getTrackerHandler(@NonNull() POBNetworkHandler networkHandler)
To get singleton instance of tracker handler class
- Parameters:
networkHandler- the network handler is required dependency for tracker handler creation- Returns:
instance tracker handler
-
getNetworkMonitor
@NonNull() static POBNetworkMonitor getNetworkMonitor(@NonNull() Context appContext)
Method to get singleton instance of POBNetworkMonitor
- Returns:
single instance of network monitor class
-
getAdViewCacheService
@NonNull() static POBAdViewCacheService getAdViewCacheService()
Method to get singleton instance of POBAdViewCacheService class
- Returns:
instance of POBAdViewCacheService
-
getApplicationSessionHandler
@NonNull() static POBAppSessionHandler getApplicationSessionHandler(@NonNull() Application application)
Method to get singleton instance of POBAppSessionHandler
- Returns:
instance of POBAppSessionHandler
-
getImpDepthHandler
@NonNull() static POBImpDepthHandling getImpDepthHandler(@NonNull() POBAppSessionHandler sessionHandler)
Method to get singleton instance of POBImpDepthHandler
- Returns:
instance of POBImpDepthHandler
-
-
-
-