addAttachmentForGlass

suspend fun addAttachmentForGlass(filePath: String, attachmentName: String, description: String?, tagUids: List<String>?, latitude: Double?, longitude: Double?, associateModules: List<ZyncModuleAssociation>?): AttachmentOperationResult

Add a new attachment for the Glass module. This is a convenience method that internally calls addAttachment with module set to ZuperModule.GLASS and moduleUid set to the current user's UID.

Return

AttachmentOperationResult containing the created Attachment object or error

Parameters

filePath

URI to the source file to be added. Must be a valid URI with scheme: - File URI: "file:///storage/emulated/0/..." (Android) or "file:///var/mobile/..." (iOS) - Content URI: "content://media/picker/..." (Android photo picker - requires Android context) Note: Plain file system paths without URI schemes are not accepted. Content URIs are Android-specific and will fail gracefully on iOS.

attachmentName

Name of the attachment. If this looks like a URI segment (especially for content URIs), the manager will attempt to auto-detect the proper display name from the ContentResolver.

description

Optional description of the attachment

tagUids

Optional list of tag UIDs to associate with the attachment

latitude

Optional latitude coordinate for geo-tagging the attachment

longitude

Optional longitude coordinate for geo-tagging the attachment

associateModules

Optional list of additional modules to associate with the attachment