The method will return the current state of the given pin: Output High, Output Low, Input, or Input with Pullup enabled.