Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
YDL-Component-Medical
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
杨凯
YDL-Component-Medical
Commits
946554f0
Commit
946554f0
authored
Nov 15, 2019
by
严久程
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
课程播放、登录判断
parent
c9cbf9b4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
CoursePlugin.kt
m-course/src/main/java/com/yidianling/course/flutterPlugin/CoursePlugin.kt
+8
-0
No files found.
m-course/src/main/java/com/yidianling/course/flutterPlugin/CoursePlugin.kt
View file @
946554f0
...
@@ -53,6 +53,7 @@ class CoursePlugin : MethodChannel.MethodCallHandler {
...
@@ -53,6 +53,7 @@ class CoursePlugin : MethodChannel.MethodCallHandler {
const
val
REQUESTDATAERROR
:
String
=
"requestDataError"
const
val
REQUESTDATAERROR
:
String
=
"requestDataError"
const
val
REQUESTSCROLLFOCUS
:
String
=
"requestScrollFocus"
const
val
REQUESTSCROLLFOCUS
:
String
=
"requestScrollFocus"
const
val
RELEASESCROLLFOCUS
:
String
=
"releaseScrollFocus"
const
val
RELEASESCROLLFOCUS
:
String
=
"releaseScrollFocus"
const
val
IOSPOP
:
String
=
"iosPop"
fun
register
(
fragment
:
BaseFlutterFragment
,
flutterView
:
FlutterView
)
{
fun
register
(
fragment
:
BaseFlutterFragment
,
flutterView
:
FlutterView
)
{
MethodChannel
(
flutterView
,
CHANNEL
).
setMethodCallHandler
(
CoursePlugin
(
fragment
))
MethodChannel
(
flutterView
,
CHANNEL
).
setMethodCallHandler
(
CoursePlugin
(
fragment
))
...
@@ -145,6 +146,13 @@ class CoursePlugin : MethodChannel.MethodCallHandler {
...
@@ -145,6 +146,13 @@ class CoursePlugin : MethodChannel.MethodCallHandler {
RELEASESCROLLFOCUS
->
{
RELEASESCROLLFOCUS
->
{
EventBus
.
getDefault
().
post
(
ScrollStatusChangeEvent
(
true
))
EventBus
.
getDefault
().
post
(
ScrollStatusChangeEvent
(
true
))
}
}
IOSPOP
->
{
PlayerFloatHelper
.
hide
()
PlayerFloatHelper
.
removeView
(
mFragment
!!
.
activity
!!
)
AudioPlayer
.
get
().
stopPlayer
()
CourseSendPlugin
.
sendMsg
(
false
)
mFragment
!!
.
activity
.
finish
()
}
}
}
}
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment