Class ProtectionConstraint

  • All Implemented Interfaces:
    Constraint

    @Beta
    public final class ProtectionConstraint
    extends MarkerConstraint
    Constraint that determines whether to employ path protection.
    • Constructor Detail

      • ProtectionConstraint

        protected ProtectionConstraint()
    • Method Detail

      • requireProtectedPath

        public static boolean requireProtectedPath​(Intent intent)
        Determines whether to utilize path protection for the given intent.
        Parameters:
        intent - intent to be inspected
        Returns:
        whether the intent has a ProtectionConstraint
      • protection

        public static ProtectionConstraint protection()
        Returns protection constraint.
        Returns:
        protection constraint