{"id":28100423,"url":"https://github.com/tidev/appcelerator.social-share","last_synced_at":"2025-09-03T23:40:01.869Z","repository":{"id":48528441,"uuid":"339340160","full_name":"tidev/appcelerator.social-share","owner":"tidev","description":"A collection of API's to Social Share","archived":false,"fork":false,"pushed_at":"2024-03-06T21:48:36.000Z","size":158,"stargazers_count":7,"open_issues_count":4,"forks_count":3,"subscribers_count":11,"default_branch":"main","last_synced_at":"2025-05-13T18:45:30.225Z","etag":null,"topics":["titanium-module"],"latest_commit_sha":null,"homepage":"","language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tidev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null},"funding":{"github":"tidev","liberapay":"tidev"}},"created_at":"2021-02-16T09:05:23.000Z","updated_at":"2023-01-15T21:23:50.000Z","dependencies_parsed_at":"2025-05-13T18:39:26.176Z","dependency_job_id":"daf54fea-f162-42a9-8728-d8789063c9e7","html_url":"https://github.com/tidev/appcelerator.social-share","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/tidev/appcelerator.social-share","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tidev%2Fappcelerator.social-share","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tidev%2Fappcelerator.social-share/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tidev%2Fappcelerator.social-share/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tidev%2Fappcelerator.social-share/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tidev","download_url":"https://codeload.github.com/tidev/appcelerator.social-share/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tidev%2Fappcelerator.social-share/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":273529061,"owners_count":25121822,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-03T02:00:09.631Z","response_time":76,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["titanium-module"],"created_at":"2025-05-13T18:34:45.459Z","updated_at":"2025-09-03T23:40:01.794Z","avatar_url":"https://github.com/tidev.png","language":"Swift","funding_links":["https://github.com/sponsors/tidev","https://liberapay.com/tidev"],"categories":[],"sub_categories":[],"readme":"# Appcelerator Social Share Module\n\n- This module brings Social Share functionaliy into the mobile apps for titanium app developers.\n\n## Getting Started\n\n- Set the `\u003cmodule\u003e` element in tiapp.xml, such as this: \n``` xml\n\u003cmodules\u003e\n    \u003cmodule platform=\"ios\"\u003eappcelerator.socialshare\u003c/module\u003e\n\u003c/modules\u003e\n```\n\n- To access this module from JavaScript, you would do the following:\n\n``` js\nvar socialshare = require(\"appcelerator.socialshare\");\n```\nThe `socialshare` variable is a reference to the Module object.\n\n## Follow basic steps to share using activity item provider:\n\n- Use `createActivityItemProvider` to create item provider\n``` js\n  const itemProvider = socialshare.createActivityItemProvider({\n\t  \tcontentType: socialshare.Content_Type_String,\n\t\t  placeHolder: 'placeholder'\n\t});\n```\n- Set `fetchItem` for `itemProvider` status\n``` js\n  itemProvider.fetchItem = function () {\n\t\treturn 'This is Text To Share';\n\t};\n```\n- Set `activityType` for `itemProvider` status\n``` js\n  itemProvider.activityType = socialshare.Activity_Type_Message;\n```\n- Set `activityType` for `itemProvider` status\n``` js\n  itemProvider.activityType = socialshare.Activity_Type_Message;\n```\n- create `customActivity` using `createCustomActivity` if custom activity is required\n``` js\n\tconst customActivity = socialshare.createCustomActivity({\n\tcategory: socialshare.Activity_Category_Share,\n\t\ttitle: 'url share',\n\t});\n```\n- call `shareWithItems` for share the content status\n``` js\n  socialshare.shareWithItems({\n\t\tactivityItems: [ itemProvider ],\n\t\tactivities: [ customActivity ],\n\t\tcompletionWithItemsHandler: function (e) {\n\t\t\tif (e.errorCode !== null || e.errorDomain !== null || e.errorDescription !== null) {\n\t\t\t\talert('Error Occured: ' + e.errorDescription);\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t});\n```\n## Follow basic steps to share using activity item source:\n\n- Use `createActivityItemSource` to create item source\n``` js\n  const itemSource = socialshare.createActivityItemSource({\n\t\tcontentType: socialshare.Content_Type_String\n\t});\n```\n- Set `fetchItem` for `itemSource` status\n``` js\n  itemSource.fetchItem = function () {\n\t\treturn 'This is Text To Share';\n\t};\n```\n- Set `fetchPlaceholderItem` for `itemSource` status\n``` js\n\titemSource.fetchPlaceholderItem = function () {\n\t\treturn 'This is Text To Share';\n\t};\n```\n- create `customActivity` using `createCustomActivity` if custom activity is required\n``` js\n\tconst customActivity = socialshare.createCustomActivity({\n\tcategory: socialshare.Activity_Category_Share,\n\t\ttitle: 'url share',\n\t});\n```\n- call `shareWithItems` for share the content status\n``` js\n\tsocialshare.shareWithItems({\n\t\tactivityItems: [ itemSource ],\n\t\tactivities: [ customActivity ],\n\t\tcompletionWithItemsHandler: function (e) {\n\t\t\tif (e.errorCode !== null || e.errorDomain !== null || e.errorDescription !== null) {\n\t\t\t\talert('Error Occured: ' + e.errorDescription);\n\t\t\t\treturn;\n\t\t\t}\n\t\t}\n\t});\n```\n\n## Example\n- Please see the `example/` folder.\n\n## Building\n\nSimply run `appc run -p ios --build-only` which will compile and package your module.\n\nCopy the module zip file into the root folder of your Titanium application or in the Titanium system folder (e.g. /Library/Application Support/Titanium).\n\n## Author\n\nAxway\n\n## License\n\nCopyright (c) 2020 by Axway, Inc. Please see the LICENSE file for further details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftidev%2Fappcelerator.social-share","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftidev%2Fappcelerator.social-share","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftidev%2Fappcelerator.social-share/lists"}