add ugc upload
This commit is contained in:
@@ -16,6 +16,14 @@
|
||||
<category android:name="android.intent.category.DEFAULT" />
|
||||
</intent-filter>
|
||||
</receiver>
|
||||
|
||||
<!--ugc上报状态反馈广播-->
|
||||
<receiver android:name=".receiver.UgcUploadStatusReceiver">
|
||||
<intent-filter>
|
||||
<action android:name="com.v2x.ugc.upload.status" />
|
||||
<category android:name="android.intent.category.DEFAULT" />
|
||||
</intent-filter>
|
||||
</receiver>
|
||||
</application>
|
||||
|
||||
</manifest>
|
||||
|
||||
@@ -0,0 +1,20 @@
|
||||
package com.mogo.module.v2x.receiver
|
||||
|
||||
import android.content.BroadcastReceiver
|
||||
import android.content.Context
|
||||
import android.content.Intent
|
||||
|
||||
/**
|
||||
* ugc上报反馈
|
||||
*/
|
||||
class UgcUploadStatusReceiver : BroadcastReceiver() {
|
||||
override fun onReceive(context: Context, intent: Intent) {
|
||||
if (intent.action == "com.v2x.ugc.upload.status"){
|
||||
var status = intent.getStringExtra("id")
|
||||
var type = intent.getStringExtra("type")
|
||||
var fromType = intent.getStringExtra("fromType")
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user