ViewerSessionHandle constructor
ViewerSessionHandle({
- required ViewerSessionProvider provider,
- required String roomName,
- String? displayName,
- Duration pollInterval = const Duration(seconds: 5),
- Duration heartbeatInterval = const Duration(seconds: 30),
- void onChange()?,
Implementation
ViewerSessionHandle({
required this.provider,
required this.roomName,
this.displayName,
this.pollInterval = const Duration(seconds: 5),
this.heartbeatInterval = const Duration(seconds: 30),
this.onChange,
}) {
_snapshot = ViewerSessionSnapshot(
phase: ViewerSessionPhase.idle,
session: null,
status: null,
error: '',
canRequestPromotion: provider.requestPromotion != null,
);
}