Class CallConnector

  • Direct Known Subclasses:
    MerchantDevicesV2Connector, PrintJobsConnector

    public abstract class CallConnector
    extends Object
    Base class for implementing call-based connectors. A connector is a class that encapsulates a content provider call interface.
    • Field Detail

      • context

        protected final Context context
    • Constructor Detail

      • CallConnector

        public CallConnector​(Context context,
                             Uri uri)
    • Method Detail

      • call

        protected Bundle call​(String method,
                              Bundle extras)
        Invoke a content provider call function with the given URI, method, and extras. This method will re-try several times if the invocation fails.
        Parameters:
        method - a String, the call method name.
        extras - a a Bundle, the call method arguments.
        Returns:
        a Bundle, the response from the call method, or {@link null} if the call failed.