Package com.breautek.fuse
Class FuseContext
java.lang.Object
com.breautek.fuse.FuseContext
- All Implemented Interfaces:
IProgressContextListener
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionFuseContext
(FuseFragment view, androidx.fragment.app.FragmentActivity context, FuseContext.IReadyCallback callback) -
Method Summary
Modifier and TypeMethodDescriptionprotected PermissionRequestHandler
void
execCallback
(String callbackID) void
execCallback
(String callbackID, String payload) androidx.fragment.app.FragmentActivity
int
getHost()
getView()
android.webkit.WebView
boolean
isDebug()
void
protected void
onActivityResult
(int requestCode, int resultCode, android.content.Intent data) void
onCreate
(android.os.Bundle bundle) void
void
void
onPause()
void
onProgressUpdate
(IProgressContext context) void
onReceivedSslError
(android.webkit.WebView webview, android.webkit.SslErrorHandler handler, android.net.http.SslError error) void
onRequestPermissionResult
(int requestCode, String[] permissions, int[] grantResults) void
onResume()
void
onSaveInstanceState
(android.os.Bundle outState) void
onStart()
void
onStop()
void
void
registerPlugin
(FusePlugin plugin) void
runOnMainThread
(Runnable runnable) void
setLogCallback
(String callbackID) void
setResponseFactory
(FuseAPIResponseFactory factory)
-
Field Details
-
SCHEME
- See Also:
-
HOST
- See Also:
-
-
Constructor Details
-
FuseContext
public FuseContext(FuseFragment view, androidx.fragment.app.FragmentActivity context, FuseContext.IReadyCallback callback)
-
-
Method Details
-
getView
-
getRuntime
-
getScreenUtils
-
getHost
-
getSSLContext
-
setResponseFactory
-
getResponseFactory
-
_createPermissionRequest
-
getLogger
-
getPermissionRequestHandler
-
isDebug
public boolean isDebug() -
getProgressContext
-
onReceivedSslError
public void onReceivedSslError(android.webkit.WebView webview, android.webkit.SslErrorHandler handler, android.net.http.SslError error) -
onCreate
public void onCreate(android.os.Bundle bundle) -
onLowMemory
public void onLowMemory() -
onPause
public void onPause() -
onResume
public void onResume() -
onSaveInstanceState
public void onSaveInstanceState(@NonNull android.os.Bundle outState) -
onStart
public void onStart() -
onActivityResult
protected void onActivityResult(int requestCode, int resultCode, android.content.Intent data) -
onStop
public void onStop() -
onRequestPermissionResult
public void onRequestPermissionResult(int requestCode, @NonNull String[] permissions, @NonNull int[] grantResults) -
onDestroy
public void onDestroy() -
getWebview
public android.webkit.WebView getWebview() -
getActivityContext
public androidx.fragment.app.FragmentActivity getActivityContext() -
registerPlugin
-
getPlugin
-
getAPIRouter
-
getAPISecret
-
getAPIPort
public int getAPIPort() -
setLogCallback
-
log
-
onWebviewReady
public void onWebviewReady() -
execCallback
-
execCallback
-
runOnMainThread
-
onProgressUpdate
- Specified by:
onProgressUpdate
in interfaceIProgressContextListener
-