You could use animation notifiers that control when to attach/detach.
Usually better to use a dedicated bone for attaching what ever item is supposed to be in hand. In the case of the UE4 mannequin, ik_gun_hand is always an option. No need to juggle animation notifiers then.