Skip to main content

React Native Audience Service

Functions

syncSegmentDefinitions

syncSegmentDefinitions(): Promise<boolean>

Synchronizes segment definitions with the Orchestrator.

Parameters: None.

getSegmentDefinitions

getSegmentDefinitions(): Promise<SegmentDefinition[]>

Retrieves all segment definitions currently available in local storage.

Parameters: None.

syncSegmentSubscriptions

syncSegmentSubscriptions(): Promise<boolean>

Synchronizes segment subscriptions with the Orchestrator.

Parameters: None.

syncAudiences

syncAudiences(): Promise<boolean>

Synchronizes audiences with the Orchestrator.

Parameters: None.

getSegmentDefinition

getSegmentDefinition(name: string): Promise<SegmentDefinition | null>

Retrieves a single segment definition by its name. Returns null if the segment is not found.

Parameters:

  • name: string — Name of the segment definition.

Classes

SegmentDefinition

{
id: string;
name: string;
text: string;
conditionJson: string;
description?: string | null;
}

SegmentSubscription

{
segmentDefinitionId: string;
}

Criteria

{
field: string;
operator: string;
value: string;
}

Filter

{
type?: string | null;
filters?: Filter[] | null;
filter?: Filter | null;
criteria?: Criteria | null;
}