how can i registred an component and detect that component function

i want to create an extension which can i registred with an verticalscrollarrangment and trigger an event when verticalscrollarrangment reach bottom please guide me