PerformanceIndicatorInterface class abstract
The main API interface of PerformanceIndicatorInterface. Available through the PerformanceIndicator
constant.
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
addContent(
String contentId, QualityPreference qualityPreference, {bool? notAccessible = false}) → Future< ContentRecording> - Add content to enable user to adjust quality when content has unexpected quality.
-
checkCurrentSpeed<
T> ({Future< T> ? request, String? url, int? badResponseTime, int? timeoutMs}) → Future<T?> - Checks current speed by a request to provided URL and additionally by a ping to 8.8.8.8.
-
contentWithQualityConverter(
{required Widget child, String? contentId, Alignment qualityConverterAlignment = Alignment.topRight, double? qualityConverterWidth, String? qualityConverterTitle, dynamic onCreated(String)?, dynamic onChangedContentQuality(String, QualityPreference)?}) → ContentWithChangingQuality - Returns content with quality converter.
-
custom(
{required double width, required List< DialogOptionDetails> dialogOptions, int? badResponseTimeInMs, Uri? checkUrl, String? title}) → PerformanceIndicatorWidget - Returns performance indicator widget with custom dialog options.
-
deleteRecording(
SpeedDetails speedDetails) → Future< void> - Deletes specific recordings of internet speed connection details.
-
exampleApp(
Size size) → ExampleApp -
existsAnyQualityPreference(
) → Future< bool> - Checks if any quality preference was stored.
-
getContent(
String contentId) → Future< ContentRecording?> - Retrieves content recording with stored quality and timestamp.
-
getCurrentQualityPreference(
) → Future< QualityPreference?> - Gets current set quality preference.
-
getCurrentQualityPreferenceSync(
) → QualityPreference? - Gets current set quality preference without async.
-
getLastCheckedSpeed(
) → Future< SpeedDetails?> - Gets last internet speed connection details.
-
markContentAsNotAccessible(
String contentId) → Future< bool> - Marks content as not accessible.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
quality(
{required double width, int? badResponseTimeInMs, Uri? checkUri, String? title}) → PerformanceIndicatorWidget - Returns performance indicator widget with default quality dialog options.
-
qualityConverter(
{required double width, required String contentId, String? title, dynamic onChangedQuality(String, QualityPreference)?}) → QualityConverter - Returns quality converter widget to indicate unexpected quality for content.
-
removeOldRecordings(
) → Future< void> - Removes recordings of internet speed connection details that are older than 60 minutes.
-
toString(
) → String -
A string representation of this object.
inherited
-
updateCurrentSpeed(
SpeedDetails speedDetails) → Future< void> - Adds further recording for current internet speed connection details.
-
updatedContentQuality(
String contentId, QualityPreference qualityPreference) → Future< ContentRecording> - Updates content quality.
-
updateQuality(
QualityPreference preference) → Future< void> - Updates quality preference.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited