Class NativeLandingPageHandler

  • All Implemented Interfaces:

    
    public final class NativeLandingPageHandler
    
                        

    This class handles click events on the views in the publisher view.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final Unit handleNativeAssetClickUrl(String url, String fallbackUrl) Handles click events on native ad assets with URL redirection.
      final Unit takeAction() Triggers the landing page action for lock screen ads.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • handleNativeAssetClickUrl

         final Unit handleNativeAssetClickUrl(String url, String fallbackUrl)

        Handles click events on native ad assets with URL redirection. This method processes the click URL and optional fallback URL.

        Parameters:
        url - The primary URL to navigate to when the asset is clicked.
        fallbackUrl - The fallback URL to use if the primary URL fails.
      • takeAction

         final Unit takeAction()

        Triggers the landing page action for lock screen ads. This method is called when the lock screen ad is clicked and the device is unlocked.