My boyfriends ignoring me

He sits on his phone all day when Im with him and when he's not on his phone he's playing Xbox, I only get attention when it suits him, should I confront him ?