Class AppBrowserIntent


public class AppBrowserIntent extends BrowserIntent
A subclass of BrowserIntent that generates an intent that is targeted at a specific application. This can be handled in the targeted application by overriding resolveAppBrowserIntent() instead of needing to implement the BrowserIntentResolver interface.
Since:
1.0
Version:
2024-02-12
  • Field Details

  • Constructor Details

    • AppBrowserIntent

      public AppBrowserIntent(Application<?> app, String type)
      Create a browser intent for the default browser on the current node.
      Parameters:
      app - the app to target
      type - intent type to send to the app
    • AppBrowserIntent

      public AppBrowserIntent(Application<?> app, String type, Map<String,Object> properties)
      Create a browser intent for the default browser on the current node.
      Parameters:
      app - the app to target
      type - intent type to send to the app
      properties - properties for the intent
    • AppBrowserIntent

      public AppBrowserIntent(Application<?> app, NodeId nodeId, String browserName, String type)
      Create a browser intent for the specified browser in the specified node.
      Parameters:
      app - the app to target
      nodeId - the node the browser is running on
      browserName - the name of the browser on the node
      type - intent type to send to the app
    • AppBrowserIntent

      public AppBrowserIntent(Application<?> app, NodeId nodeId, String browserName, String type, Map<String,Object> properties)
      Create a browser intent for the specified browser in the specified node.
      Parameters:
      app - the app to target
      nodeId - the node the browser is running on
      browserName - the name of the browser on the node
      type - intent type to send to the app
      properties - properties for the intent
    • AppBrowserIntent

      public AppBrowserIntent(Application<?> app, BrowserIntent intent, String type)
      Create a browser intent targeting the browser contained in the specified intent. This is used when transforming one intent to another so that the target browser doesn't get lost.
      Parameters:
      app - the app to target
      intent - the original intent containing the target browser
      type - intent type to send to the app
    • AppBrowserIntent

      public AppBrowserIntent(Application<?> app, BrowserIntent intent, String type, Map<String,Object> properties)
      Create a browser intent targeting the browser contained in the specified intent. This is used when transforming one intent to another so that the target browser doesn't get lost.
      Parameters:
      app - the app to target
      intent - the original intent containing the target browser
      type - intent type to send to the app
      properties - properties for the intent
    • AppBrowserIntent

      public AppBrowserIntent(Application<?> app, BrowserId browserId, String type)
      Create a browser intent targeting the specified browser.
      Parameters:
      app - the app to target
      browserId - the browser to target
      type - intent type to send to the app
    • AppBrowserIntent

      public AppBrowserIntent(Application<?> app, BrowserId browserId, String type, Map<String,Object> properties)
      Create a browser intent targeting the specified browser.
      Parameters:
      app - the app to target
      browserId - the browser to target
      type - intent type to send to the app
      properties - properties for the intent
    • AppBrowserIntent

      public AppBrowserIntent(String appId, String type)
      Create a browser intent for the default browser on the current node.
      Parameters:
      appId - the app to target
      type - intent type to send to the app
    • AppBrowserIntent

      public AppBrowserIntent(String appId, String type, Map<String,Object> properties)
      Create a browser intent for the default browser on the current node.
      Parameters:
      appId - the app to target
      type - intent type to send to the app
      properties - properties for the intent
    • AppBrowserIntent

      public AppBrowserIntent(String appId, NodeId nodeId, String browserName, String type)
      Create a browser intent for the specified browser in the specified node.
      Parameters:
      appId - the app to target
      nodeId - the node the browser is running on
      browserName - the name of the browser on the node
      type - intent type to send to the app
    • AppBrowserIntent

      public AppBrowserIntent(String appId, NodeId nodeId, String browserName, String type, Map<String,Object> properties)
      Create a browser intent for the specified browser in the specified node.
      Parameters:
      appId - the app to target
      nodeId - the node the browser is running on
      browserName - the name of the browser on the node
      type - intent type to send to the app
      properties - properties for the intent
    • AppBrowserIntent

      public AppBrowserIntent(String appId, BrowserIntent intent, String type)
      Create a browser intent targeting the browser contained in the specified intent. This is used when transforming one intent to another so that the target browser doesn't get lost.
      Parameters:
      appId - the app to target
      intent - the original intent containing the target browser
      type - intent type to send to the app
    • AppBrowserIntent

      public AppBrowserIntent(String appId, BrowserIntent intent, String type, Map<String,Object> properties)
      Create a browser intent targeting the browser contained in the specified intent. This is used when transforming one intent to another so that the target browser doesn't get lost.
      Parameters:
      appId - the app to target
      intent - the original intent containing the target browser
      type - intent type to send to the app
      properties - properties for the intent
    • AppBrowserIntent

      public AppBrowserIntent(String appId, BrowserId browserId, String type)
      Create a browser intent targeting the specified browser.
      Parameters:
      appId - the app to target
      browserId - the browser to target
      type - intent type to send to the app
    • AppBrowserIntent

      public AppBrowserIntent(String appId, BrowserId browserId, String type, Map<String,Object> properties)
      Create a browser intent targeting the specified browser.
      Parameters:
      appId - the app to target
      browserId - the browser to target
      type - intent type to send to the app
      properties - properties for the intent