> For the complete documentation index, see [llms.txt](https://aatkit.gitbook.io/aatkit-flutter-binding/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://aatkit.gitbook.io/aatkit-flutter-binding/formats/rewarded-video.md).

# Rewarded Video

### Create placement <a href="#markdown-header-creating-placement" id="markdown-header-creating-placement"></a>

To create rewarded placement, call `createRewardedPlacement` method:

```dart
_aatKitBinding.createRewardedPlacement();
```

You can change the placement name if needed:

{% code title="AATKitBinding.kt" %}

```kotlin
    //Change placement name if needed
    private val rewardedPlacementName = "rewardedPlacement"
    private var rewardedPlacement: RewardedVideoPlacement? = null
```

{% endcode %}

{% code title="AATKitBinding.swift" %}

```swift
    //Change placement name if needed
    private let rewardedPlacementName = "rewardedPlacement"
    private var rewardedPlacement: AATRewardedVideoPlacement? = nil
```

{% endcode %}

### Reload placement <a href="#markdown-header-reloading-placement" id="markdown-header-reloading-placement"></a>

Start auto-reloading placement by calling:

```dart
_aatKitBinding.startRewardedAutoReload();
```

Stop auto-reloading placement by calling:

```dart
_aatKitBinding.stopRewardedAutoReload();
```

### Show placement <a href="#markdown-header-showing-placement" id="markdown-header-showing-placement"></a>

When rewarded video ad is loaded, you can show it:

```dart
_aatKitBinding.showRewarded();
```

### Check if user earned incentive <a href="#markdown-header-checking-if-user-earned-incentive" id="markdown-header-checking-if-user-earned-incentive"></a>

When user watches ad, you will be notified that incentive is earned. Register callback to get `AATKitReward` object containing needed information:

```dart
    _aatKitBinding.onUserEarnedIncentive = (reward) {
      print("[Home Page] onUserEarnedIncentive "
          "placementName: ${reward.placementName} "
          "rewardName: ${reward.rewardName} "
          "rewardValue: ${reward.rewardValue} ");
    };
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://aatkit.gitbook.io/aatkit-flutter-binding/formats/rewarded-video.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
