跳到主要内容

bn.onKeyboardHeightChange

onKeyboardHeightChange(cb): void

description Listens on the keyboard height changes

example

function callback(res) {
console.log(res.height)
}
bn.onKeyboardHeightChange(callback)

Parameters

NameTypeDescription
cbonKeyboardHeightChangeCallbackCallback on keyboard height change

Returns

void


onKeyboardHeightChangeCallback

Ƭ onKeyboardHeightChangeCallback: (result: EventKeyboardHeightChangePayload) => void

Type declaration

▸ (result): void

Parameters

NameType
resultEventKeyboardHeightChangePayload

Returns

void


Interface: EventKeyboardHeightChangePayload

NameTypeDescription
heightnumberheight of keyboard