aad_b2c_webview library

Classes

AADB2CBase
AADB2CController
AADB2CCustom
Abortable
An HTTP request that can be aborted before it completes.
AbortableMultipartRequest
A MultipartRequest which supports abortion using abortTrigger.
AbortableRequest
A Request which supports abortion using abortTrigger.
AbortableStreamedRequest
A StreamedRequest which supports abortion using abortTrigger.
ActionController
ActionEntity
ADLoginButton
ADLoginWebView
AndroidCustomViewWidget
Represents a Flutter implementation of the Android View that is created by the host platform when web content needs to be displayed in fullscreen mode.
AndroidJavaScriptChannelParams
An implementation of JavaScriptChannelParams with the Android WebView API.
AndroidLoadFileParams
Object specifying parameters for loading a local file in a AndroidWebViewController.
AndroidNavigationDelegate
A place to register callback methods responsible to handle navigation events triggered by the android_webview.WebView.
AndroidNavigationDelegateCreationParams
Object specifying creation parameters for creating a AndroidNavigationDelegate.
AndroidSslAuthError
Implementation of the PlatformSslAuthError with the Android WebView API.
AndroidUrlChange
Android details of the change to a web view's url.
AndroidWebResourceError
Error returned in WebView.onWebResourceError when a web resource loading error has occurred.
AndroidWebViewController
Implementation of the PlatformWebViewController with the Android WebView API.
AndroidWebViewControllerCreationParams
Object specifying creation parameters for creating a AndroidWebViewController.
AndroidWebViewCookieManager
Handles all cookie operations for the Android platform.
AndroidWebViewCookieManagerCreationParams
Object specifying creation parameters for creating a AndroidWebViewCookieManager.
AndroidWebViewPermissionRequest
Android implementation of PlatformWebViewPermissionRequest.
AndroidWebViewPermissionResourceType
Android-specific resources that can require permissions.
AndroidWebViewPlatform
Implementation of WebViewPlatform using the WebKit API.
AndroidWebViewWidget
An implementation of PlatformWebViewWidget with the Android WebView API.
AndroidWebViewWidgetCreationParams
Object specifying creation parameters for creating a AndroidWebViewWidget.
AzureTokenResponseEntity
B2CAuthDatasource
B2CAuthDatasourceImpl
B2CAuthEntity
B2CAuthRepository
B2CAuthRepositoryImpl
B2CRestClient
B2CRestClientImpl
B2CWebViewDatasource
B2CWebViewDatasourceImpl
B2CWebViewHelper
B2CWebViewParams
B2CWebViewRepository
B2CWebViewRepositoryImpl
BaseClient
The abstract base class for an HTTP client.
BaseRequest
The base class for HTTP requests.
BaseResponse
The base class for HTTP responses.
BaseResponseWithUrl
A BaseResponse with a url field.
ButtonSettingsEntity
ButtonStyleEntity
ByteStream
A stream of chunks of bytes representing a single piece of data.
Check
Client
The interface for HTTP clients that take care of maintaining persistent connections across multiple requests to the same server.
Constants
CustomSettingsEntity
DefaultError
DefaultLoading
Disposable
If objects that are registered inside GetIt implements Disposable the onDispose method will be called whenever that Object is unregistered, resetted or its enclosing Scope is popped
FileSelectorParams
Parameters received when the WebView should show a file selector.
FlutterJs
FlutterJsCustomAlert
GeolocationPermissionsRequestParams
A request params used by the host application to set the Geolocation permission state for an origin.
GeolocationPermissionsResponse
A response used by the host application to set the Geolocation permission state for an origin.
GetIt
Very simple and easy to use service locator You register your object creation factory or an instance of an object with registerFactory, registerSingleton or registerLazySingleton And retrieve the desired object using get or call your locator as function as its a callable class Additionally GetIt offers asynchronous creation functions as well as functions to synchronize the async initialization of multiple Singletons
HtmlParseEntity
HttpAuthRequest
Defines the parameters of a pending HTTP authentication request received by the webview through a HttpAuthRequestCallback.
HttpResponseError
Error returned in PlatformNavigationDelegate.setOnHttpError when an HTTP response error has been received.
InitDependency
Data structure used to identify a dependency by type and instanceName
Injections
JavaScriptAlertDialogRequest
Defines the parameters that support PlatformWebViewController.setOnJavaScriptAlertDialog.
JavaScriptChannelParams
Describes the parameters necessary for registering a JavaScript channel.
JavaScriptConfirmDialogRequest
Defines the parameters that support PlatformWebViewController.setOnJavaScriptConfirmDialog.
JavaScriptConsoleMessage
Represents a console message written to the JavaScript console.
JavaScriptMessage
A message that was sent by JavaScript code running in a WebView.
JavaScriptTextInputDialogRequest
Defines the parameters that support PlatformWebViewController.setOnJavaScriptTextInputDialog.
LoadFileParams
Object specifying parameters for loading a local HTML file into a web view.
LoadRequestParams
Defines the parameters that can be used to load a page with the PlatformWebViewController.
MediaType
A class representing an HTTP media type, as used in Accept and Content-Type headers.
MultipartFile
A file to be uploaded as part of a MultipartRequest.
MultipartRequest
A multipart/form-data request.
Callbacks for accepting or rejecting navigation changes, and for tracking the progress of navigation requests.
Defines the parameters of the pending navigation callback.
OptionalParam
Class represents an optional parameter for the Azure AD B2C user flow. for sending optional parameters in a link.
PkcePair
A pair of (codeVerifier, codeChallenge) that can be used with PKCE (Proof Key for Code Exchange).
PlatformNavigationDelegate
An interface defining navigation events that occur on the native platform.
PlatformNavigationDelegateCreationParams
Object specifying creation parameters for creating a PlatformNavigationDelegate.
PlatformSslAuthError
Represents an SSL error with the associated certificate.
PlatformWebViewController
Interface for a platform implementation of a web view controller.
PlatformWebViewControllerCreationParams
Object specifying creation parameters for creating a PlatformWebViewController.
PlatformWebViewCookieManager
Interface for a platform implementation of a cookie manager.
PlatformWebViewCookieManagerCreationParams
Object specifying creation parameters for creating a PlatformWebViewCookieManager.
PlatformWebViewPermissionRequest
Permissions request when web content requests access to protected resources.
PlatformWebViewWidget
Interface for a platform implementation of a web view widget.
PlatformWebViewWidgetCreationParams
Object specifying creation parameters for creating a WebViewWidgetDelegate.
Request
An HTTP request where the entire request body is known in advance.
Response
An HTTP response where the entire response body is known in advance.
RestClientResponse
ScrollPositionChange
Defines the parameters of the scroll position change callback.
ShadowChangeHandlers
If an object implements the ShadowChangeHandler if will get notified if an Object with the same registration type and name is registered on a higher scope which will shadow it. It also will get notified if the shadowing object is removed from GetIt
SslAuthError
Represents an SSL error with the associated certificate.
StreamedRequest
An HTTP request where the request body is sent asynchronously after the connection has been established and the headers have been sent.
StreamedResponse
An HTTP response where the response body is received asynchronously after the headers have been received.
TokenEntity
UrlChange
Details of the change to a web view's url.
WebKitJavaScriptChannelParams
An implementation of JavaScriptChannelParams with the WebKit api.
WebKitLoadFileParams
Object specifying parameters for loading a local file in a WebKitWebViewController.
WebKitNavigationDelegate
An implementation of PlatformNavigationDelegate with the WebKit API.
WebKitNavigationDelegateCreationParams
Object specifying creation parameters for a WebKitNavigationDelegate.
WebKitSslAuthError
An implementation of PlatformSslAuthError with the WebKit api.
WebKitWebResourceError
An implementation of WebResourceError with the WebKit API.
WebKitWebViewController
An implementation of PlatformWebViewController with the WebKit api.
WebKitWebViewControllerCreationParams
Object specifying creation parameters for a WebKitWebViewController.
WebKitWebViewCookieManager
An implementation of PlatformWebViewCookieManager with the WebKit api.
WebKitWebViewCookieManagerCreationParams
Object specifying creation parameters for a WebKitWebViewCookieManager.
WebKitWebViewPermissionRequest
WebKit implementation of PlatformWebViewPermissionRequest.
WebKitWebViewPlatform
Implementation of WebViewPlatform using the WebKit API.
WebKitWebViewWidget
An implementation of PlatformWebViewWidget with the WebKit api.
WebKitWebViewWidgetCreationParams
Object specifying creation parameters for a WebKitWebViewWidget.
WebResourceError
Error returned in WebView.onWebResourceError when a web resource loading error has occurred.
WebResourceRequest
Defines the parameters of the web resource request from the associated request.
WebResourceResponse
Contains information about the response for a request.
WebViewController
Controls a WebView provided by the host platform.
WebViewControllersHelper
WebViewControllersUsecaseImpl
WebViewCookie
A cookie that can be set globally for all web views using WebViewCookieManagerPlatform.
WebViewCookieManager
Manages cookies pertaining to all WebViews.
WebViewCredential
Defines the response parameters of a pending HttpAuthRequest received by the webview.
WebViewPermissionRequest
Permissions request when web content requests access to protected resources.
WebViewPermissionResourceType
Types of resources that can require permissions.
WebViewPlatform
Interface for a platform implementation of a WebView.
WebViewSettingsEntity
WebViewWidget
Displays a native WebView as a Widget.
WillSignalReady
If your singleton that you register wants to use the manually signalling of its ready state, it can implement this interface class instead of using the signalsReady parameter of the registration functions (you don't really have to implement much ;-) )
X509Certificate
Represents an X.509 certificate.

Enums

AADB2CType
AndroidWebViewInsets
Defines different types of sources causing window insets.
FileSelectorMode
Mode of how to select files for a file chooser.
HtmlParseType
JavaScriptLogLevel
Represents the severity of a JavaScript log message.
JavaScriptMode
Describes the state of JavaScript support in a given web view.
JsDocumentType
LoadRequestMethod
Defines the supported HTTP methods for loading a page in PlatformWebViewController.
MixedContentMode
Mode for controlling mixed content handling. See AndroidWebViewController.setMixedContentMode.
A decision on how to handle a navigation request.
PlaybackMediaTypes
Media types that can require a user gesture to begin playing.
TokenType
WebAuthenticationSupport
Support levels for android_webview.WebSettingsCompat.setWebAuthenticationSupport.
WebResourceErrorType
Possible error type categorizations used by WebResourceError.
WebViewFeatureType
WebView support library feature types used to query for support on the device.
WebViewOverScrollMode
Defines the over-scroll behavior of a WebView.

Properties

getIt → GetIt
final

Functions

delete(Uri url, {Map<String, String>? headers, Object? body, Encoding? encoding}) → Future<Response>
Sends an HTTP DELETE request with the given headers to the given URL.
get(Uri url, {Map<String, String>? headers}) → Future<Response>
Sends an HTTP GET request with the given headers to the given URL.
Sends an HTTP HEAD request with the given headers to the given URL.
patch(Uri url, {Map<String, String>? headers, Object? body, Encoding? encoding}) → Future<Response>
Sends an HTTP PATCH request with the given headers and body to the given URL.
post(Uri url, {Map<String, String>? headers, Object? body, Encoding? encoding}) → Future<Response>
Sends an HTTP POST request with the given headers and body to the given URL.
put(Uri url, {Map<String, String>? headers, Object? body, Encoding? encoding}) → Future<Response>
Sends an HTTP PUT request with the given headers and body to the given URL.
read(Uri url, {Map<String, String>? headers}) → Future<String>
Sends an HTTP GET request with the given headers to the given URL and returns a Future that completes to the body of the response as a String.
readBytes(Uri url, {Map<String, String>? headers}) → Future<Uint8List>
Sends an HTTP GET request with the given headers to the given URL and returns a Future that completes to the body of the response as a list of bytes.
runWithClient<R>(R body(), Client clientFactory(), {ZoneSpecification? zoneSpecification}) → R
Runs body in its own Zone with the Client returned by clientFactory set as the default Client.
throwIf(bool condition, Object error) → void
Two handy functions that help me to express my intention clearer and shorter to check for runtime errors
throwIfNot(bool condition, Object error) → void

Typedefs

DisposingFunc<T> = FutureOr Function(T param)
Signature for disposing function because closures like (x){} have a return type of Null we don't use FutureOr<void>
FactoryFunc<T> = T Function()
Signature of the factory function used by non async factories
FactoryFuncAsync<T> = Future<T> Function()
Signature of the factory function used by async factories
FactoryFuncParam<T, P1, P2> = T Function(P1 param1, P2 param2)
For Factories that expect up to two parameters if you need only one use void for the one you don't use
FactoryFuncParamAsync<T, P1, P2> = Future<T> Function(P1 param1, P2 param2)
For async Factories that expect up to two parameters if you need only one use void for the one you don't use
HttpAuthRequestCallback = void Function(HttpAuthRequest request)
Signature for callbacks that notify the host application of an authentication request.
HttpResponseErrorCallback = void Function(HttpResponseError error)
Signature for callbacks that report http errors during loading a page.
LoadRequestCallback = Future<void> Function(LoadRequestParams params)
Signature for the loadRequest callback responsible for loading the url after a navigation request has been approved.
Signature for callbacks that report a pending navigation request.
NullableWidgetsBuilder = Widget Function(BuildContext context, String? currentUrl, ActionController controller, List<HtmlParseEntity>? htmlItem)
  • WidgetBuilder, which is similar but only takes a BuildContext.
  • TransitionBuilder, which is similar but also takes a child.
  • OnGeolocationPermissionsHidePrompt = void Function()
    Signature for the setGeolocationPermissionsPromptCallbacks callback responsible for request the Geolocation API is cancel.
    OnGeolocationPermissionsShowPrompt = Future<GeolocationPermissionsResponse> Function(GeolocationPermissionsRequestParams request)
    Signature for the setGeolocationPermissionsPromptCallbacks callback responsible for request the Geolocation API.
    OnHideCustomWidgetCallback = void Function()
    Signature for the setCustomWidgetCallbacks callback responsible for hiding the custom view.
    OnShowCustomWidgetCallback = void Function(Widget widget, void onCustomWidgetHidden())
    Signature for the setCustomWidgetCallbacks callback responsible for showing the custom view.
    PageEventCallback = void Function(String url)
    Signature for callbacks that report page events triggered by the native web view.
    ProgressCallback = void Function(int progress)
    Signature for callbacks that report loading progress of a page.
    ScopeDisposeFunc = FutureOr Function()
    Signature for disposing function on scope level
    SslAuthErrorCallback = void Function(PlatformSslAuthError error)
    Signature for callbacks that notify the host application of an SSL authentication error.
    UrlChangeCallback = void Function(UrlChange change)
    Signature for callbacks that notify the host application of a change to the url of the web view.
    WebResourceErrorCallback = void Function(WebResourceError error)
    Signature for callbacks that report a resource loading error.
    WebViewChangeFunction = bool Function(String? url)
    This function is called when the webview url is changed.
    WebViewControllerBuilder = void Function(BuildContext context, ActionController controller)
    Builder function to get an webview controller. This builder is called when the controller has created.
    WebViewErrorFunction = dynamic Function(BuildContext context, String? error)
    Builder function to create an success function. This function is called when the web view catch any error.
    WebViewErrorWidgetBuilder = Widget Function(BuildContext context, String? error)
    Builder function to create an error widget. This builder is called when the web view failed loading.
    WebViewSuccessFunction = dynamic Function(BuildContext context, TokenEntity? accessToken, TokenEntity? idToken, TokenEntity? refreshToken)
    Builder function to create an success function. This function is called when the web view redirect to app with tokens.