-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
181 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE reference PUBLIC "-//OASIS//DTD DITA Reference//EN" "reference.dtd"> | ||
<reference id="callback_playerobserver_onevent"> | ||
<title><ph keyref="onEvent"/></title> | ||
<shortdesc id="short"><ph id="shortdesc"></ph></shortdesc> | ||
<prolog> | ||
<metadata> | ||
<keywords> | ||
<indexterm keyref="onEvent"/> | ||
</keywords> | ||
</metadata> | ||
</prolog> | ||
<refbody> | ||
<section id="prototype"> | ||
<p outputclass="codeblock"> | ||
<codeblock props="android" outputclass="language-java">public void onEvent(int event){}</codeblock> | ||
<codeblock props="hmos" outputclass="language-arkts"/> | ||
<codeblock props="ios mac" outputclass="language-objectivec">- (void)onEvent:(AgoraRtePlayerEvent)event;</codeblock> | ||
<codeblock props="cpp unreal" outputclass="language-cpp">virtual void onEvent(PlayerEvent event) = 0;</codeblock> | ||
<codeblock props="bp" outputclass="language-cpp"/> | ||
<codeblock props="cs" outputclass="language-csharp"/> | ||
<codeblock props="electron" outputclass="language-typescript"/> | ||
<codeblock props="unity cs" outputclass="language-csharp"/> | ||
<codeblock props="rn" outputclass="language-typescript"/> | ||
<codeblock props="flutter" outputclass="language-dart"/> </p> | ||
</section> | ||
<section id="detailed_desc" deliveryTarget="details" otherprops="no-title"> | ||
<dl outputclass="since"> | ||
<dlentry props="native"> | ||
<dt>自从</dt> | ||
<dd>v</dd> | ||
</dlentry> | ||
</dl> | ||
<p/> | ||
</section> | ||
<section id="scenario" deliveryTarget="details"> | ||
<title>适用场景</title> | ||
<p/> | ||
</section> | ||
<section id="timing" deliveryTarget="details"> | ||
<title>触发时机</title> | ||
<p/> | ||
</section> | ||
<section id="restriction" deliveryTarget="details"> | ||
<title>使用限制</title> | ||
<p/> | ||
</section> | ||
<section id="parameters" deliveryTarget="details"> | ||
<title>参数</title> | ||
<parml> | ||
<plentry> | ||
<pt><?oxy-placeholder content="The name of the parameter."?></pt> | ||
<pd><?oxy-placeholder content="The description of the parameter. Please specify if the parameter is optional, output, and has a default value or value range."?></pd> | ||
</plentry> | ||
</parml> </section> | ||
<section id="return_values"> | ||
<title><ph keyref="return-section-title"/></title> | ||
<p props="flutter">方法成功调用时,无返回值;方法调用失败时,会抛出 <xref keyref="AgoraRtcException"/> 异常,你需要捕获异常并进行处理。</p> | ||
<ul props="native electron unity rn unreal bp"> | ||
<li>0: 方法调用成功。</li> | ||
<li>< 0: 方法调用失败。<ph props="cn">详见<xref keyref="error-code-link"/>了解详情和解决建议。</ph></li> | ||
</ul> </section> | ||
</refbody> | ||
</reference> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters