> For the complete documentation index, see [llms.txt](https://docs.namiml.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.namiml.com/sdk-reference/namicampaignmanager/iscampaignavailable.md).

# isCampaignAvailable

Returns a boolean if a matching campaign is available on the device.

{% tabs %}
{% tab title="Swift" %}

```swift
import NamiApple

// Returns true if a default campaign (one without a label) is available on the device
NamiCampaignManager.isCampaignAvailable()

// Returns true if a campaign matching the specified label is available on the device
NamiCampaignManager.isCampaignAvailable("a_label")
```

{% endtab %}

{% tab title="Kotlin" %}

```kotlin
// Returns true if a default campaign (one without a label) is available on the device
NamiCampaignManager.isCampaignAvailable()

// Returns true if a campaign matching the specified label is available on the device
NamiCampaignManager.isCampaignAvailable("a_label")
```

{% endtab %}

{% tab title="Flutter" %}

```dart
import 'package:nami_flutter/campaign/nami_campaign.dart';
import 'package:nami_flutter/campaign/nami_campaign_manager.dart';

// Check if a unlabeled campaign is available on device
bool available = await NamiCampaignManager.isCampaignAvailable();

// Check if a labeled campaign is available on device
bool available = await NamiCampaignManager.isCampaignAvailable(label: "a_label");
```

{% endtab %}

{% tab title="React Native" %}

```jsx
import {NamiCampaignManager, NamiCampaign} from 'react-native-nami-sdk';

const isCampaignAvailable = await NamiCampaignManager.isCampaignAvailable(
  label,
);
```

{% endtab %}
{% endtabs %}
