Patent attributes
An electronic device with a holding mechanism is provided. The device includes a main body, a housing, a carriage, a first elastic member, a stopper member, a second elastic member, and a button. The housing includes a first sidewall, a second sidewall opposite to the first sidewall, and a third sidewall formed between the first sidewall and the second sidewall, an opening is defined in the second sidewall. The stopper member is slidably received in the housing and connected to the third sidewall. The carriage is slidably received in the housing and connected to the first sidewall. The ridge protrudes from the carriage and is capable of blocking a free end of the stopper member to retain the carriage in a retracted position. The button is slidably connected to the housing and includes a distal end, which engages with the stopper member.