Give the class user the ability to handle dismiss.
Minimize imports needed to use SDK.