> 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/namicustomermanager/journeystate.md).

# journeyState

Returns the current state of a customer's subscription journey.

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

```swift
static func journeyState() -> CustomerJourneyState?
```

{% endtab %}

{% tab title="Kotlin" %}

```kotlin
fun journeyState(): CustomerJourneyState?
```

{% endtab %}

{% tab title="Flutter" %}

```dart
static Future<CustomerJourneyState?> journeyState() async
```

{% endtab %}

{% tab title="React Native" %}

```javascript
export type CustomerJourneyState = {
  formerSubscriber: boolean;
  inGracePeriod: boolean;
  inTrialPeriod: boolean;
  inIntroOfferPeriod: boolean;
  isCancelled: boolean;
  inPause: boolean;
  inAccountHold: boolean;
};
```

{% endtab %}

{% tab title="Unity" %}

```c
public class CustomerJourneyState
{
    public bool FormerSubscriber { get; private set; }

    public bool InGracePeriod { get; private set; }

    public bool InTrialPeriod { get; private set; }

    public bool InIntroOfferPeriod { get; private set; }

    public bool IsCancelled { get; private set; }

    /// <summary> Android platforms only </summary>
    public bool InPause { get; private set; }

    public bool InAccountHold { get; private set; }
}
```

{% endtab %}
{% endtabs %}

Returns a [CustomerJourneyState](https://docs.namiml.com/sdk-reference/namicustomermanager/customerjourneystate.md) object.
