core-ktx / androidx.text / kotlin.CharSequence / isDigitsOnly

isDigitsOnly

inline fun CharSequence.isDigitsOnly(): Boolean

Returns whether the given CharSequence contains only digits.

See Also

TextUtils.isDigitsOnly