API/Autodoc/Files/RuStoreGodotCore.gd.en.md
Source code
@brief Класс реализует коллекцию вспомогательных методов для взаимодействия с приложением RuStore.
class_name RuStoreGodotCoreUtils extends Object
const SINGLETON_NAME = “RuStoreGodotCore”
var _isInitialized: bool = false var _clientWrapper: Object = null
static var _instance: RuStoreGodotCoreUtils = null
Если экземпляр еще не создан, создает его.
static func get_instance() -> RuStoreGodotCoreUtils: if _instance == null: _instance = RuStoreGodotCoreUtils.new() return _instance
func _init(): if Engine.has_singleton(SINGLETON_NAME): _clientWrapper = Engine.get_singleton(SINGLETON_NAME) _isInitialized = true
func show_toast(data: String): return _clientWrapper.showToast(data)
func convert_to_iso8601(data: String) -> String: return _clientWrapper.convertToISO8601(data)
func copy_to_clipboard(data: String): _clientWrapper.copyToClipboard(data)
func get_from_clipboard() -> String: return _clientWrapper.getFromClipboard()
func get_string_resources(name: String) -> String: return _clientWrapper.getStringResources(name)
func get_int_resources(name: String) -> int: return _clientWrapper.getIntResources(name)
func get_string_shared_preferences(storageName: String, key: String, defaultValue: String) -> String: return _clientWrapper.getStringSharedPreferences(storageName, key, defaultValue)
func get_int_shared_preferences(storageName: String, key: String, defaultValue: int) -> int: return _clientWrapper.getIntSharedPreferences(storageName, key, defaultValue)
func set_string_shared_preferences(storageName: String, key: String, value: String): _clientWrapper.setStringSharedPreferences(storageName, key, value)
func set_int_shared_preferences(storageName: String, key: String, value: int): _clientWrapper.setIntSharedPreferences(storageName, key, value)
Возвращает true, если RuStore установлен, в противном случае — false.
func is_rustore_installed() -> Variant: var json = _clientWrapper.isRuStoreInstalled() return JSON.parse_string(json)
@brief Открыть веб-страницу для скачивания приложения RuStore.
func open_rustore_download_instruction(): _clientWrapper.openRuStoreDownloadInstruction()
@brief Запуск приложения RuStore.
func open_rustore(): _clientWrapper.openRuStore()
После успешной авторизации пользователя приложение RuStore автоматически закроется.
func open_rustore_authorization(): _clientWrapper.openRuStoreAuthorization()
- Страницы
- ERuStorePayPreferredPurchaseType.gd.en
- ERuStorePayPreferredPurchaseType.gd
- ERuStorePayProductPurchaseStatus.gd.en
- ERuStorePayProductPurchaseStatus.gd
- ERuStorePayProductType.gd.en
- ERuStorePayProductType.gd
- ERuStorePayPurchaseStatusFilter.gd.en
- ERuStorePayPurchaseStatusFilter.gd
- ERuStorePayPurchaseType.gd.en
- ERuStorePayPurchaseType.gd
- ERuStorePaySdkTheme.gd.en
- ERuStorePaySdkTheme.gd
- ERuStorePaySubscriptionPurchaseStatus.gd.en
- ERuStorePaySubscriptionPurchaseStatus.gd
- ERuStorePayUserAuthorizationStatus.gd.en
- ERuStorePayUserAuthorizationStatus.gd
- RuStoreError.gd.en
- RuStoreError.gd
- RuStoreFeatureAvailabilityResult.gd.en
- RuStoreFeatureAvailabilityResult.gd
- RuStoreGodotCore.en
- RuStoreGodotCore.gd.en
- RuStoreGodotCore.gd
- RuStoreGodotCore
- RuStoreGodotPay.en
- RuStoreGodotPay.gd.en
- RuStoreGodotPay.gd
- RuStoreGodotPay
- RuStorePayAmountLabel.gd.en
- RuStorePayAmountLabel.gd
- RuStorePayAppUserEmail.gd.en
- RuStorePayAppUserEmail.gd
- RuStorePayAppUserId.gd.en
- RuStorePayAppUserId.gd
- RuStorePayBaseValue.gd.en
- RuStorePayBaseValue.gd
- RuStorePayCurrency.gd.en
- RuStorePayCurrency.gd
- RuStorePayDescription.gd.en
- RuStorePayDescription.gd
- RuStorePayDeveloperPayload.gd.en
- RuStorePayDeveloperPayload.gd
- RuStorePayGetPurchaseAvailabilityResult.gd.en
- RuStorePayGetPurchaseAvailabilityResult.gd
- RuStorePayInvoiceId.gd.en
- RuStorePayInvoiceId.gd
- RuStorePayOrderId.gd.en
- RuStorePayOrderId.gd
- RuStorePayPrice.gd.en
- RuStorePayPrice.gd
- RuStorePayProduct.gd.en
- RuStorePayProduct.gd
- RuStorePayProductId.gd.en
- RuStorePayProductId.gd
- RuStorePayProductPurchase.gd.en
- RuStorePayProductPurchase.gd
- RuStorePayProductPurchaseParams.gd.en
- RuStorePayProductPurchaseParams.gd
- RuStorePayProductPurchaseResult.gd.en
- RuStorePayProductPurchaseResult.gd
- RuStorePayPurchase.gd.en
- RuStorePayPurchase.gd
- RuStorePayPurchaseId.gd.en
- RuStorePayPurchaseId.gd
- RuStorePayQuantity.gd.en
- RuStorePayQuantity.gd
- RuStorePaySubscriptionInfo.gd.en
- RuStorePaySubscriptionInfo.gd
- RuStorePaySubscriptionPeriod.gd.en
- RuStorePaySubscriptionPeriod.gd
- RuStorePaySubscriptionPurchase.gd.en
- RuStorePaySubscriptionPurchase.gd
- RuStorePaySubscriptionToken.gd.en
- RuStorePaySubscriptionToken.gd
- RuStorePayTime.gd.en
- RuStorePayTime.gd
- RuStorePayTitle.gd.en
- RuStorePayTitle.gd
- RuStorePayUrl.gd.en
- RuStorePayUrl.gd
- RuStorePaymentException.gd.en
- RuStorePaymentException.gd
- addons.en
- addons
- docs.en
- docs
- godot_example.en
- godot_example
- ERuStorePayPreferredPurchaseType.gd.en
- ERuStorePayPreferredPurchaseType.gd
- ERuStorePayProductPurchaseStatus.gd.en
- ERuStorePayProductPurchaseStatus.gd
- ERuStorePayProductType.gd.en
- ERuStorePayProductType.gd
- ERuStorePayPurchaseStatusFilter.gd.en
- ERuStorePayPurchaseStatusFilter.gd
- ERuStorePayPurchaseType.gd.en
- ERuStorePayPurchaseType.gd
- ERuStorePaySdkTheme.gd.en
- ERuStorePaySdkTheme.gd
- ERuStorePaySubscriptionPurchaseStatus.gd.en
- ERuStorePaySubscriptionPurchaseStatus.gd
- ERuStorePayUserAuthorizationStatus.gd.en
- ERuStorePayUserAuthorizationStatus.gd
- RuStoreError.gd.en
- RuStoreError.gd
- RuStoreFeatureAvailabilityResult.gd.en
- RuStoreFeatureAvailabilityResult.gd
- RuStoreGodotCore.en
- RuStoreGodotCore.gd.en
- RuStoreGodotCore.gd
- RuStoreGodotCore
- RuStoreGodotPay.en
- RuStoreGodotPay.gd.en
- RuStoreGodotPay.gd
- RuStoreGodotPay
- RuStorePayAmountLabel.gd.en
- RuStorePayAmountLabel.gd
- RuStorePayAppUserEmail.gd.en
- RuStorePayAppUserEmail.gd
- RuStorePayAppUserId.gd.en
- RuStorePayAppUserId.gd
- RuStorePayBaseValue.gd.en
- RuStorePayBaseValue.gd
- RuStorePayCurrency.gd.en
- RuStorePayCurrency.gd
- RuStorePayDescription.gd.en
- RuStorePayDescription.gd
- RuStorePayDeveloperPayload.gd.en
- RuStorePayDeveloperPayload.gd
- RuStorePayGetPurchaseAvailabilityResult.gd.en
- RuStorePayGetPurchaseAvailabilityResult.gd
- RuStorePayInvoiceId.gd.en
- RuStorePayInvoiceId.gd
- RuStorePayOrderId.gd.en
- RuStorePayOrderId.gd
- RuStorePayPrice.gd.en
- RuStorePayPrice.gd
- RuStorePayProduct.gd.en
- RuStorePayProduct.gd
- RuStorePayProductId.gd.en
- RuStorePayProductId.gd
- RuStorePayProductPurchase.gd.en
- RuStorePayProductPurchase.gd
- RuStorePayProductPurchaseParams.gd.en
- RuStorePayProductPurchaseParams.gd
- RuStorePayProductPurchaseResult.gd.en
- RuStorePayProductPurchaseResult.gd
- RuStorePayPurchase.gd.en
- RuStorePayPurchase.gd
- RuStorePayPurchaseId.gd.en
- RuStorePayPurchaseId.gd
- RuStorePayQuantity.gd.en
- RuStorePayQuantity.gd
- RuStorePaySubscriptionInfo.gd.en
- RuStorePaySubscriptionInfo.gd
- RuStorePaySubscriptionPeriod.gd.en
- RuStorePaySubscriptionPeriod.gd
- RuStorePaySubscriptionPurchase.gd.en
- RuStorePaySubscriptionPurchase.gd
- RuStorePaySubscriptionToken.gd.en
- RuStorePaySubscriptionToken.gd
- RuStorePayTime.gd.en
- RuStorePayTime.gd
- RuStorePayTitle.gd.en
- RuStorePayTitle.gd
- RuStorePayUrl.gd.en
- RuStorePayUrl.gd
- RuStorePaymentException.gd.en
- RuStorePaymentException.gd
- addons.en
- addons
- docs.en
- docs
- godot_example.en
- godot_example