OAuthService class

Service class for handling OAuth connections to various platforms

NOTE: Sensitive API keys are handled in native compiled code. This Dart layer delegates to OnairosCore (AAR/XCFramework) for security.

Constructors

OAuthService()

Properties

apiBaseUrl Future<String>
Get API base URL from native code
no setter
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

connectGmail(BuildContext context) Future<bool>
Connect to Gmail with proper OAuth configuration
connectInstagram(BuildContext context) Future<bool>
Connect to Instagram using native Opacity SDK
connectPinterest(BuildContext context) Future<bool>
Connect to Pinterest using enhanced WebView
connectReddit(BuildContext context) Future<bool>
Connect to Reddit using enhanced WebView
connectStandardOAuth(BuildContext context, String platform) Future<bool>
Generic method to connect to any platform using standard OAuth
connectYouTube(BuildContext context, [String? customClientId]) Future<bool>
Connect to YouTube using the enhanced native SDK service
initOpacity({String? apiKey}) Future<void>
Initialize the Opacity SDK The API key should be provided by the consuming app or retrieved from secure storage
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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