# Enums Every enum, with its case names in each language and the integer that is the same everywhere. *NGA SDK 0.1.0 preview: you install 0.1.0 from Maven Central and NGA's public repositories. Every 0.x version is a preview under the NGA SDK License, and the API can change until 1.0. Questions: hi@nga.network. This page: https://nga.io/docs/sdk/reference/enums/* - **Integer:** the same on every platform ([Enum integers](https://nga.io/docs/sdk/reference/#enum-integers)). Kotlin enums have a `value` property; Swift and C# enums are `Int`-backed, with the integer as their raw value. - **Swift `.none`:** `NGALogLevel.none` and `NGARewardDenial.none` are enum cases. Next to an optional, write the type (`NGARewardDenial.none`) so it is not read as `Optional.none`. ## `NGAConsentState` The player's answer in each field of an `NGAConsent`. | Integer | Kotlin, Java | Swift | Objective-C | C# | | --- | --- | --- | --- | --- | | 0 | `UNKNOWN` | `.unknown` | `NGAConsentStateUnknown` | `Unknown` | | 1 | `GRANTED` | `.granted` | `NGAConsentStateGranted` | `Granted` | | 2 | `DENIED` | `.denied` | `NGAConsentStateDenied` | `Denied` | `UNKNOWN` is "not answered yet"; how it resolves by region: [Consent](https://nga.io/docs/sdk/privacy/#consent). ## `NGAAgeState` The player's age, for `setAge`. | Integer | Kotlin, Java | Swift | Objective-C | C# | | --- | --- | --- | --- | --- | | 0 | `UNKNOWN` | `.unknown` | `NGAAgeStateUnknown` | `Unknown` | | 1 | `ADULT` | `.adult` | `NGAAgeStateAdult` | `Adult` | | 2 | `CHILD` | `.child` | `NGAAgeStateChild` | `Child` | ## `NGALogLevel` How much the SDK writes to the device log, for `setLogLevel`. | Integer | Kotlin, Java | Swift | Objective-C | C# | | --- | --- | --- | --- | --- | | 0 | `NONE` | `.none` | `NGALogLevelNone` | `None` | | 1 | `ERROR` | `.error` | `NGALogLevelError` | `Error` | | 2 | `WARN` | `.warn` | `NGALogLevelWarn` | `Warn` | | 3 | `INFO` | `.info` | `NGALogLevelInfo` | `Info` | | 4 | `DEBUG` | `.debug` | `NGALogLevelDebug` | `Debug` | The default is `WARN`. ## `NGAAdRevenueMediation` The layer that served another network's ad, in `NGAAdRevenue`. | Integer | Kotlin, Java | Swift | Objective-C | C# | | --- | --- | --- | --- | --- | | 0 | `NONE` | `.none` | `NGAAdRevenueMediationNone` | `None` | | 1 | `ADMOB` | `.admob` | `NGAAdRevenueMediationAdmob` | `AdMob` | | 2 | `MAX` | `.max` | `NGAAdRevenueMediationMax` | `Max` | | 3 | `LEVELPLAY` | `.levelplay` | `NGAAdRevenueMediationLevelplay` | `LevelPlay` | | 4 | `OTHER` | `.other` | `NGAAdRevenueMediationOther` | `Other` | `NONE` is an app that shows ads from one network with no mediation layer; name that network with `network(…)`. ## `NGARevenuePrecision` How exact a revenue figure is, in `NGAAdRevenue` and `NGAImpression`. | Integer | Kotlin, Java | Swift | Objective-C | C# | | --- | --- | --- | --- | --- | | 0 | `UNDEFINED` | `.undefined` | `NGARevenuePrecisionUndefined` | `Undefined` | | 1 | `EXACT` | `.exact` | `NGARevenuePrecisionExact` | `Exact` | | 2 | `ESTIMATED` | `.estimated` | `NGARevenuePrecisionEstimated` | `Estimated` | | 3 | `PUBLISHER_DEFINED` | `.publisherDefined` | `NGARevenuePrecisionPublisherDefined` | `PublisherDefined` | NGA's own impressions are always `EXACT`. ## `NGAAdFormat` An ad's format, in `NGAAdRevenue` and `NGAImpression`. | Integer | Kotlin, Java | Swift | Objective-C | C# | | --- | --- | --- | --- | --- | | 0 | `UNKNOWN` | `.unknown` | `NGAAdFormatUnknown` | `Unknown` | | 1 | `BANNER` | `.banner` | `NGAAdFormatBanner` | `Banner` | | 2 | `MREC` | `.mrec` | `NGAAdFormatMrec` | `Mrec` | | 3 | `INTERSTITIAL` | `.interstitial` | `NGAAdFormatInterstitial` | `Interstitial` | | 4 | `REWARDED` | `.rewarded` | `NGAAdFormatRewarded` | `Rewarded` | | 5 | `REWARDED_INTERSTITIAL` | `.rewardedInterstitial` | `NGAAdFormatRewardedInterstitial` | `RewardedInterstitial` | | 6 | `NATIVE` | `.native` | `NGAAdFormatNative` | `Native` | | 7 | `APP_OPEN` | `.appOpen` | `NGAAdFormatAppOpen` | `AppOpen` | The full list is for `NGAAdRevenue`, describing other networks' ads. `UNKNOWN` means not given, or a format the SDK cannot map; it never appears on an `NGAImpression`. NGA's own ads are `INTERSTITIAL`, `REWARDED` and `NATIVE` (the native banner). ## `NGAAdState` Where an `NGAAd` is in its life. | Integer | Kotlin, Java | Swift | Objective-C | C# | | --- | --- | --- | --- | --- | | 0 | `FAILED` | `.failed` | `NGAAdStateFailed` | `Failed` | | 1 | `READY` | `.ready` | `NGAAdStateReady` | `Ready` | | 2 | `SHOWING` | `.showing` | `NGAAdStateShowing` | `Showing` | | 3 | `CONSUMED` | `.consumed` | `NGAAdStateConsumed` | `Consumed` | | 4 | `EXPIRED` | `.expired` | `NGAAdStateExpired` | `Expired` | An ad starts `READY`. `show` makes it `SHOWING`; a show that ends makes it `CONSUMED`. A show refused for a temporary reason (the screen not in front, a window too small for the banner) returns it to `READY`; see [After `onShowFailed`](https://nga.io/docs/sdk/reference/callbacks/#ngaadshowlistener). `EXPIRED` is set when `onExpired` is called; `FAILED` follows a `RENDER_FAILED` show. ## `NGAShowCompletion` How a show ended, in `onCompleted`. | Integer | Kotlin, Java | Swift | Objective-C | C# | | --- | --- | --- | --- | --- | | 0 | `SKIPPED` | `.skipped` | `NGAShowCompletionSkipped` | `Skipped` | | 1 | `COMPLETED` | `.completed` | `NGAShowCompletionCompleted` | `Completed` | ## `NGARewardDenial` Why a reward was not granted, in `NGARewardResult`. | Integer | Kotlin, Java | Swift | Objective-C | C# | | --- | --- | --- | --- | --- | | 0 | — (`denial` is `null` when granted) | `.none` | `NGARewardDenialNone` | `None` | | 1 | `SKIPPED` | `.skipped` | `NGARewardDenialSkipped` | `Skipped` | | 2 | `REJECTED` | `.rejected` | `NGARewardDenialRejected` | `Rejected` | | 3 | `INTERRUPTED` | `.interrupted` | `NGARewardDenialInterrupted` | `Interrupted` | ## `NGAErrorCode` The code of an `NGAError`. The codes and their integers are on [Errors](https://nga.io/docs/sdk/reference/errors/).