Networking

public class com.mopub.network.Networking extends java.lang.Object

Networking-related tasks used by the MoPub SDK for ad URLs. All methods with the exception of the two listed below are intended for SDK internal use only.

Public Methods

public static boolean /shouldUseHttps()

  • Description: Return whether the MoPub SDK should use HTTPS. Set a preference via the useHttps(boolean) method.

  • Parameters: None.

  • Returns: true if HTTPS; false if HTTP.

public static void /useHttps(boolean useHttps)

  • Description: Set whether to use HTTP or HTTPS for WebView base URLs.

  • Parameters:

    • useHttps: Pass in true to use HTTPS; false to use HTTP.

Last updated February 11, 2020

TWITTER, MOPUB, and the Bird logo are trademarks of Twitter, Inc. or its affiliates. All third party logos and trademarks included are the property of their respective owners.

© 2020 MoPub (a division of Twitter, Inc.)