AppleFoundationFlutterPlatform class abstract

Inheritance
  • Object
  • PlatformInterface
  • AppleFoundationFlutterPlatform
Implementers

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

ask(String prompt, {String? sessionId}) Future<String?>
classifyText(String text, {String? sessionId, List<String>? categories}) Future<Map<String, double>>
closeSession(String sessionId) Future<void>
Close an existing session
extractInformation(String text, {String? sessionId, List<String>? fields}) Future<Map<String, dynamic>>
generateAlternatives(String prompt, {String? sessionId, int count = 3}) Future<List<String>>
generateSuggestions(String context, {String? sessionId, int maxSuggestions = 5}) Future<List<String>>
generateText(String prompt, {String? sessionId, int? maxTokens, double? temperature, double? topP}) Future<String?>
Generate text with specific constraints (max tokens, temperature, etc.)
generateTextStream(String prompt, {String? sessionId, int? maxTokens, double? temperature, double? topP}) Stream<String>
getAvailabilityStatus() Future<Map<String, dynamic>>
Get the availability status with detailed reason if unavailable
getListOfString(String prompt, {String? sessionId}) Future<List<String>>
getModelCapabilities() Future<Map<String, dynamic>>
Get available model capabilities
getPlatformVersion() Future<String?>
getStructuredData(String prompt, {String? sessionId}) Future<Map<String, dynamic>>
getStructuredDataStream(String prompt, {String? sessionId}) Stream<String>
isAvailable() Future<bool>
Check if Apple Intelligence is available on the device
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
openSession(String instructions) Future<String>
summarizeText(String text, {String? sessionId, SummarizationStyle style = SummarizationStyle.concise}) Future<String?>
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Static Properties

instance AppleFoundationFlutterPlatform
getter/setter pair