In a way that shows awareness or understanding of the facts or situation. She knowingly nodded, indicating she understood the implications of the decision.
In a manner that is done with full awareness and intention. He knowingly broke the rules, fully aware of the potential consequences.
In a way that suggests secret or private knowledge, often conveyed through a look, tone, or gesture. She smiled knowingly at her friend, hinting that she was in on the joke.