Skip to content

Class: GoalsService ​

Twitch Creator Goals initial state and real-time progress.

Constructors ​

Constructor ​

ts
new GoalsService(): GoalsService;

Returns ​

GoalsService

Methods ​

getActive() ​

ts
getActive(): Promise<CreatorGoalsStatus>;

Returns all currently active Creator Goals.

Returns ​

Promise<CreatorGoalsStatus>


onBegin() ​

ts
onBegin(callback): void;

Parameters ​

callback ​

OnCreatorGoalBeginCallback

Returns ​

void


onEnd() ​

ts
onEnd(callback): void;

Parameters ​

callback ​

OnCreatorGoalEndCallback

Returns ​

void


onProgress() ​

ts
onProgress(callback): void;

Parameters ​

callback ​

OnCreatorGoalProgressCallback

Returns ​

void