-
Notifications
You must be signed in to change notification settings - Fork 421
CAMediaManager
Photograph functionality and photo album reading.
CAObject
Access modifier |
Attribute name |
Description |
Protected |
MediaDelegate |
agent |
Access modifier |
Method name |
Description |
public |
shareCAMediaManager |
Obtain singleton |
public |
addCameraView |
Open camera |
public |
addAlbumView |
Open photo album |
MediaDelegate
Type: CAMediaDelegate *
Description: we need to inherit CAMediaDelegate and rewrite the internal interface that is used to obtain photo when using media, so as to obtain the photo.
static CAMediaManager shareCAMediaManager()*
Return value: CAMediaManager*
Description: build mediaManager singleton object
void addCameraView()
Return value: void
Description: open camera functionality.
void addAlbumView()
Return value: void
Description: open photo album functionality
Example:
1 2 3 |
CAMediaManager* media = CAMediaManager::shareCAMediaManager(); media->setMediaDelegate(this); media->addAlbumView(); |