code: public static Uri getTargetUrlFromInboundIntent(Context context, Intent intent) {
      Bundle appLinkData = getAppLinkData(intent);
      if (appLinkData != null) {
        String targetString = appLinkData.getString(KEY_NAME_TARGET);
        if (targetString != null) {
          MeasurementEvent.sendBroadcastEvent(context, MeasurementEvent.APP_LINK_NAVIGATE_IN_EVENT_NAME, intent, null);
          return Uri.parse(targetString);
        }
      }
      return null;
    }
docs: Gets the target URL for an intent. If the intent is from an App Link, this will be the App Link target.
  Otherwise, it return null; For app link intent, this function will broadcast APP_LINK_NAVIGATE_IN_EVENT_NAME event.
  
  @param context the context this function is called within.
  @param intent the incoming intent.
  @return the target URL for the intent if applink intent; null otherwise.