setCaptureRuleEnabled