Taken into police custody means being arrested, you will be in the police station until they decide what to do with you, you don't have any freedom.
Being detained usually means being physically held back by the police from doing anything or if the state prevents you from doing certain things.