Package com.prineside.tdi2
Class ActionResolver.ActionResolverAdapter
java.lang.Object
com.prineside.tdi2.ActionResolver.ActionResolverAdapter
- All Implemented Interfaces:
ActionResolver
- Enclosing interface:
- ActionResolver
public abstract static class ActionResolver.ActionResolverAdapter
extends Object
implements ActionResolver
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.prineside.tdi2.ActionResolver
ActionResolver.ActionResolverAdapter, ActionResolver.InitConfigManager
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addNotification
(int id, String title, String description, long timestampMs) boolean
void
clearNotification
(int id) boolean
void
generateDeviceReport
(Json json) net.bytebuddy.dynamic.loading.ClassLoadingStrategy
getClasses
(String packageName) void
getMobilePasswordInput
(Input.TextInputListener listener, String title, String text, String hint) com.badlogic.gdx.pay.PurchaseManager
int[]
int
int
void
handleTextFieldFocus
(FocusListener.FocusEvent event, TextField actor, boolean focused) void
handleThreadExceptions
(Thread thread) boolean
boolean
boolean
boolean
void
logCurrencyReceived
(String currencyName, String source, int amount) void
logCurrencySpent
(String onItem, String currencyName, int amount) void
logCustomEvent
(String eventName, String[] paramPairs) void
logIAP
(Config.ProductId id, com.badlogic.gdx.pay.Transaction transaction) void
logLogined
(String method) void
void
logScreenChange
(String screenName) void
logShopOfferPurchased
(String priceItem, int priceCount, String boughtItem, int boughtCount) void
logShopOffersSkipped
(int price) void
logSignedUp
(String method) newAudioDevice
(int sampleRate, boolean isMono) void
onExit()
void
void
void
boolean
boolean
void
requestGoogleAuth
(ObjectConsumer<String> callback) void
void
boolean
void
setFpsLimit
(int limit) void
setPersonalizedAds
(boolean enabled) void
showInterstitialAd
(ObjectConsumer<Boolean> onDone) void
showRewardAd
(ObjectConsumer<Boolean> onDone, PurchaseManager.RewardingAdsType type) void
void
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.prineside.tdi2.ActionResolver
createPlatformLogger, getDeviceInfo, getFileChooser, getLogFile, getShortDeviceInfo, glGetStringi
-
Constructor Details
-
ActionResolverAdapter
public ActionResolverAdapter()
-
-
Method Details
-
getPurchaseManager
public com.badlogic.gdx.pay.PurchaseManager getPurchaseManager()- Specified by:
getPurchaseManager
in interfaceActionResolver
-
getScreenSafeAreaInsets
public int[] getScreenSafeAreaInsets()- Specified by:
getScreenSafeAreaInsets
in interfaceActionResolver
- Returns:
- int[top right bottom left]
-
getBestScreenResolution
- Specified by:
getBestScreenResolution
in interfaceActionResolver
-
setFpsLimit
public void setFpsLimit(int limit) - Specified by:
setFpsLimit
in interfaceActionResolver
-
getWindowsGraphicsScale
public int getWindowsGraphicsScale()- Specified by:
getWindowsGraphicsScale
in interfaceActionResolver
- Returns:
- 96, если стоит 100%
-
parseHtml
- Specified by:
parseHtml
in interfaceActionResolver
-
getCachedMusicManager
- Specified by:
getCachedMusicManager
in interfaceActionResolver
-
hasNotifications
public boolean hasNotifications()- Specified by:
hasNotifications
in interfaceActionResolver
-
addNotification
- Specified by:
addNotification
in interfaceActionResolver
-
clearNotification
public void clearNotification(int id) - Specified by:
clearNotification
in interfaceActionResolver
-
requestLogin
public void requestLogin()- Specified by:
requestLogin
in interfaceActionResolver
-
generateDeviceReport
- Specified by:
generateDeviceReport
in interfaceActionResolver
-
getInitConfigManager
- Specified by:
getInitConfigManager
in interfaceActionResolver
-
getMobilePasswordInput
public void getMobilePasswordInput(Input.TextInputListener listener, String title, String text, String hint) - Specified by:
getMobilePasswordInput
in interfaceActionResolver
-
rewardAdsAvailable
public boolean rewardAdsAvailable()- Specified by:
rewardAdsAvailable
in interfaceActionResolver
-
canShowRewardAd
public boolean canShowRewardAd()- Specified by:
canShowRewardAd
in interfaceActionResolver
-
hasGoogleAuth
public boolean hasGoogleAuth()- Specified by:
hasGoogleAuth
in interfaceActionResolver
-
isSignedInWithGoogle
public boolean isSignedInWithGoogle()- Specified by:
isSignedInWithGoogle
in interfaceActionResolver
-
requestGoogleAuth
- Specified by:
requestGoogleAuth
in interfaceActionResolver
-
signOutGoogle
public void signOutGoogle()- Specified by:
signOutGoogle
in interfaceActionResolver
-
logCurrencyReceived
- Specified by:
logCurrencyReceived
in interfaceActionResolver
-
logCurrencySpent
- Specified by:
logCurrencySpent
in interfaceActionResolver
-
logLogined
- Specified by:
logLogined
in interfaceActionResolver
-
logSignedUp
- Specified by:
logSignedUp
in interfaceActionResolver
-
logShopOfferPurchased
public void logShopOfferPurchased(String priceItem, int priceCount, String boughtItem, int boughtCount) - Specified by:
logShopOfferPurchased
in interfaceActionResolver
-
logShopOffersSkipped
public void logShopOffersSkipped(int price) - Specified by:
logShopOffersSkipped
in interfaceActionResolver
-
logScreenChange
- Specified by:
logScreenChange
in interfaceActionResolver
-
getSecondsTillCanShowRewardAd
public int getSecondsTillCanShowRewardAd()- Specified by:
getSecondsTillCanShowRewardAd
in interfaceActionResolver
- Returns:
- -1, если неизвестно
-
showRewardAd
- Specified by:
showRewardAd
in interfaceActionResolver
-
showInterstitialAd
- Specified by:
showInterstitialAd
in interfaceActionResolver
-
isAppModified
public boolean isAppModified()- Specified by:
isAppModified
in interfaceActionResolver
-
getAppModifiedInfo
- Specified by:
getAppModifiedInfo
in interfaceActionResolver
-
logCustomEvent
- Specified by:
logCustomEvent
in interfaceActionResolver
-
logIAP
- Specified by:
logIAP
in interfaceActionResolver
-
logRewardedVideoViewed
- Specified by:
logRewardedVideoViewed
in interfaceActionResolver
-
getClasses
- Specified by:
getClasses
in interfaceActionResolver
-
onExit
public void onExit()- Specified by:
onExit
in interfaceActionResolver
-
newAudioDevice
- Specified by:
newAudioDevice
in interfaceActionResolver
-
unlockAchievement
- Specified by:
unlockAchievement
in interfaceActionResolver
-
openHandbook
public void openHandbook()- Specified by:
openHandbook
in interfaceActionResolver
-
doubleGainEnabledBySteamGamePurchase
public boolean doubleGainEnabledBySteamGamePurchase()- Specified by:
doubleGainEnabledBySteamGamePurchase
in interfaceActionResolver
-
openSupportPage
public void openSupportPage()- Specified by:
openSupportPage
in interfaceActionResolver
-
handleThreadExceptions
- Specified by:
handleThreadExceptions
in interfaceActionResolver
-
getByteBuddyClassLoadingStrategy
public net.bytebuddy.dynamic.loading.ClassLoadingStrategy getByteBuddyClassLoadingStrategy()- Specified by:
getByteBuddyClassLoadingStrategy
in interfaceActionResolver
-
handleTextFieldFocus
- Specified by:
handleTextFieldFocus
in interfaceActionResolver
-
requestSteamAuthTicket
- Specified by:
requestSteamAuthTicket
in interfaceActionResolver
-
getDefaultLocale
- Specified by:
getDefaultLocale
in interfaceActionResolver
-
personalizedAdsSupported
public boolean personalizedAdsSupported()- Specified by:
personalizedAdsSupported
in interfaceActionResolver
-
personalizedAdsEnabled
public boolean personalizedAdsEnabled()- Specified by:
personalizedAdsEnabled
in interfaceActionResolver
-
setPersonalizedAds
public void setPersonalizedAds(boolean enabled) - Specified by:
setPersonalizedAds
in interfaceActionResolver
-