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

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")
// 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")
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");
import {NamiCampaignManager, NamiCampaign} from 'react-native-nami-sdk';

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