Skip to main content

Callbacks and Delegates

Delegates

Fullstory allows setting a single object to be set as the status listener, and provides the FSStatusListener mixin to facilitate this.

onFSSession gets invoked on the status listener once Fullstory has been fully initialized and has started the capture. It is passed the session url as a string for it's first argument.

Other callbacks may be added in the future.

Additional Information

FS.setStatusListener(FSStatusListener? listener)

Example Usage

class MyStatusListener with FSStatusListener {
MyStatusListener() {
FS.setStatusListener(this);
}

@override
void onFSSession(String url) {
print("Fullstory session started: $url");
}
}

void main() {
var listener = new MyStatusListener();
}