Giter Site home page Giter Site logo

gaconsentmanager-ios-module's Introduction

gaconsentmanager-ios-module

Appodeal Consent Manager for Godot

API Compatible with Android plugin.

Setup

  1. Get Godot source.
  2. Copy files from this repository to godot/modules/gaconsentmanager folder.
  3. Add StackConsentManager.framework to lib subfolder.
  4. Compile for iOS.
  5. After export Godot-project to XCode-project, replace GameName.a in XCode-project to file got on previous step.
  6. Add Consent Manager framework (see Choose your type of installation section).

Usage

To use the GAConsentManager API you first have to get the GAConsentManager singleton:

var _consent_manager

func _ready():
  if Engine.has_singleton("GAConsentManager"):
    _consent_manager = Engine.get_singeton("GAConsentManager")

Regulations

enum Regulation {
  UNKNOWN = 0,
  NONE = 1,
  GDPR = 2,
  CCPA = 3,
}

Statuses

enum Status {
  UNKNOWN = 0,
  NON_PERSONALIZED = 1,
  PARTLY_PERSONALIZED = 2,
  PERSONALIZED = 3,
}

Methods

Synchronize

# Synchronize Consent Manager SDK
func synchronize(app_key: String) -> void
# Sunchronize Consent Manager SDK with params
func sunchronizeWithParams(app_key: String, params: Dictionary) -> void

Consent Dialog

# Should a consent dialog be displayed?
func shouldShowConsentDialog() -> bool
# Load Consent Dialog
func loadConsentDialog() -> void
# Is the dialog ready for display?
func isConsentDialogReady() -> bool
# Show Consent Dialog
func showConsentDialog() -> void
# Is the consent dialog shown?
func isConsentDialogPresenting() -> bool

Other

# Get regulation
func getRegulation() -> int
# Get status
func getStatus() -> int
# Get consent
func getConsent() -> bool
# Get IAB string
func getIABConsentString() -> String
# Get consent for vendor
func hasConsentForVendor(bundle: String) -> bool
# Enable IAB storage
func enableIABStorage() -> void

Signals

Sunchronize

# Emit when Consent Manager SDK synchronized
signal synchronized()
# Emit when Consent Manager SDK failed to synchronize
signal synchronize_failed(error: String)

Consent Dialog

# Emit when Consent Dialog loaded
signal dialog_loaded()
# Emit when Consent Dialog shown
signal dialog_shown()
# Emit when Consent Dialog failed to show
signal dialog_failed()
# Emit when Consent Dialog closed
signal dialog_closed()

gaconsentmanager-ios-module's People

Contributors

poqxert avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.