测试已测试 | ✗ |
语言语言 | SwiftSwift |
许可证 | MIT |
发布最后发布 | 2015年9月 |
SPM支持SPM | ✗ |
由 Prateek Srivastava,Ladan Azita Nasserian,Segment,Brennan Gamwell 维护。
analytics-swift 是一个用于 Segment 的 Swift 客户端
AnalyticsSwift.framework
文件 拖入 您的项目中。Analytics.framework
文件从我们在步骤 2 中添加到项目的二进制中拖入。将 AnalyticsSwift
库添加到您的项目中。
添加正确的导入 import AnalyticsSwift
使用您的项目写入密钥创建一个分析客户端实例
var analytics = Analytics.create(YOUR_SEGMENT_WRITE_KEY_HERE)
var message = TrackMessageBuilder(event: "Button A").userId("prateek")
analytics.enqueue(message)
analytics.flush()
您可以在这里看到库的基本使用示例。
WWWWWW||WWWWWW
W W W||W W W
||
( OO )__________
/ | \
/o o| MIT \
\___/||_||__||_|| *
|| || || ||
_||_|| _||_||
(__|__|(__|__|
(The MIT License)
Copyright (c) 2013 Segment Inc. <[email protected]>
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the 'Software'), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.