show static method
- BuildContext context, {
- String titleText = 'Choose what to share',
- String screenTabText = 'Entire Screen',
- String windowTabText = 'Window',
- String cancelText = 'Cancel',
Shows the picker and returns the id of the selected capture source, or
null if the user cancelled. Pass the returned id to
ScreenShareCaptureOptions.sourceId when creating a screen share track.
Experimental: this API may change in a future release.
Implementation
@experimental
static Future<String?> show(
BuildContext context, {
String titleText = 'Choose what to share',
String screenTabText = 'Entire Screen',
String windowTabText = 'Window',
String cancelText = 'Cancel',
String shareText = 'Share',
}) async {
final source = await showDialog<rtc.DesktopCapturerSource>(
context: context,
builder: (context) => ScreenSelectDialog(
titleText: titleText,
screenTabText: screenTabText,
windowTabText: windowTabText,
cancelText: cancelText,
shareText: shareText,
),
);
return source?.id;
}