getNativeViews method

Future<List<NativeView>> getNativeViews(
  1. Selector selector, {
  2. String? appId,
})

Returns a list of currently visible native UI controls, specified by selector, which are currently visible on screen.

Implementation

Future<List<NativeView>> getNativeViews(
  Selector selector, {
  String? appId,
}) async {
  final response = await _wrapRequest(
    'getNativeViews',
    () => _client.getNativeViews(
      GetNativeViewsRequest(
        selector: selector,
        appId: appId ?? resolvedAppId,
      ),
    ),
  );

  return response.nativeViews;
}