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
(com.badlogic.gdx.utils.Json json) net.bytebuddy.dynamic.loading.ClassLoadingStrategy
void
getMobilePasswordInput
(com.badlogic.gdx.Input.TextInputListener listener, String title, String text, String hint) com.badlogic.gdx.pay.PurchaseManager
int[]
int
int
void
handleTextFieldFocus
(com.badlogic.gdx.scenes.scene2d.utils.FocusListener.FocusEvent event, TextFieldXPlatform 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
logSignedUp
(String method) com.badlogic.gdx.audio.AudioDevice
newAudioDevice
(int sampleRate, boolean isMono) void
onExit()
void
void
boolean
boolean
void
requestGoogleAuth
(ObjectConsumer<String> callback) void
void
boolean
void
setFpsLimit
(int limit) void
setPersonalizedAds
(boolean enabled) 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
getDeviceInfo, getOkJoySDK, 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%
-
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
public void generateDeviceReport(com.badlogic.gdx.utils.Json json) - Specified by:
generateDeviceReport
in interfaceActionResolver
-
getInitConfigManager
- Specified by:
getInitConfigManager
in interfaceActionResolver
-
getMobilePasswordInput
public void getMobilePasswordInput(com.badlogic.gdx.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
-
getSecondsTillCanShowRewardAd
public int getSecondsTillCanShowRewardAd()- Specified by:
getSecondsTillCanShowRewardAd
in interfaceActionResolver
- Returns:
- -1, если неизвестно
-
showRewardAd
- Specified by:
showRewardAd
in interfaceActionResolver
-
isAppModified
public boolean isAppModified()- Specified by:
isAppModified
in interfaceActionResolver
-
logCustomEvent
- Specified by:
logCustomEvent
in interfaceActionResolver
-
logIAP
- Specified by:
logIAP
in interfaceActionResolver
-
logRewardedVideoViewed
- Specified by:
logRewardedVideoViewed
in interfaceActionResolver
-
onExit
public void onExit()- Specified by:
onExit
in interfaceActionResolver
-
newAudioDevice
public com.badlogic.gdx.audio.AudioDevice newAudioDevice(int sampleRate, boolean isMono) - 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
public void handleTextFieldFocus(com.badlogic.gdx.scenes.scene2d.utils.FocusListener.FocusEvent event, TextFieldXPlatform actor, boolean focused) - 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
-