Skip to main content

GofaPoseSdkManager

info

It has been renamed from GofaSDKManager.

isConnected

This isConnected property is a stream to let you know whether the gofa_pose can establish a connection with our Firebase project successfully.

The initial value of this property is "null". And it will return boolean when we have decided the connection works or not.

info

available since gofa_pose v0.8.24

StreamBuilder(
stream: GetIt.I<GofaPoseSdkManager>().isConnected,
builder: (context, snapshot) {
if (snapshot.hasData) {
log.d('isConnected snapshot.data: [${snapshot.data}');
if (snapshot.data as bool) {
return const Text('Connected to GOFA Firebase');
} else {
return const Text(
'Cannot be connected to GOFA Firebase');
}
}
return const Text('Still connecting to GOFA Firebase');
},
);