4.3 firebase统计和Facebook统计
<h2><font color=red>调用接口前需接入相关统计的依赖库</font></h2>
<h3>4.3.1 提交统计事件1(单参数)</h3>
<p>调用示例</p>
<pre><code>//firebase统计事件1
FqGame.commitFireBaseEvent(key);
//facebook统计事件1
FqGame.commitFBEvent(key);</code></pre>
<p>参数说明</p>
<pre><code>key为自定义事件名称</code></pre>
<h3>4.3.2 提交统计事件2(多参数)</h3>
<p>调用示例</p>
<pre><code>//以下参数为例子:
Bundle bundle = new Bundle();
bundle.putString("name", "test");
bundle.putLong("level", 100);
//firebase统计事件2
FqGame.commitFireBaseEvent("sentFriendRequest", bundle);
//facebook统计事件2
FqGame.commitFBEvent("sentFriendRequest", bundle);</code></pre>
<p>参数说明</p>
<pre><code>key为自定义事件名称,bundle 自定义事件值</code></pre>